Automic VaultAutomic Vault

brew

Install gtree with Homebrew, MacPorts, Nix

Generate directory trees and directories using Markdown or programmatically. Version 1.14.9 via Homebrew; verified 2026-07-01.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install gtree

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install gtree

MacPorts ports tree · sysutils/gtree/Portfile · source: api.github.com

Linux

Nixverified · 92%
nix profile install nixpkgs#gtree

nixpkgs package indexes · pkgs/by-name/gt/gtree/package.nix · source: api.github.com

overview

Package summary

Generate directory trees and directories using Markdown or programmatically

Commands and aliases

  • gtree

history

Project history and usage

gtree is a Go package and CLI family for turning structured input into ASCII trees, directory skeletons, and verification checks. It began as a developer-facing Go library, then grew into command-line tooling for Markdown, JSON, YAML, and TOML tree generation.

Project history

The public repository traces back to a first commit on 2019-02-12. Its README frames the library as a simple way for Go programs to output tree structures, then documents CLI surfaces around Markdown and structured-data input.

The project split its practical surface into the `gtree` CLI for Markdown-based trees, directory creation, and directory verification, plus `xtree` for JSON, YAML, and TOML input. A WebAssembly-backed web page, Tree Maker, extends the same Markdown-to-tree idea into a browser tool.

Adoption history

gtree moved into package-manager workflows through Go modules and release artifacts, with the README documenting installation through `go install`, Homebrew, Nix, MacPorts, Scoop, Docker images, and binary packages. The input metadata records Homebrew, MacPorts, and Nix packaging.

How it is used

Developers can call package functions such as `OutputFromRoot`, `MkdirFromRoot`, `VerifyFromRoot`, and Markdown equivalents from Go code. CLI users pipe Markdown unordered lists into `gtree output`, use templates to create directories and files, or compare a Markdown description with an existing filesystem tree.

`xtree` covers another common package-user workflow: piping JSON, YAML, or TOML into a tree renderer for quick inspection of nested configuration or API-shaped data.

Why package nerds care

gtree is not a replacement for the classic Unix `tree` command; it is more of a programmable tree printer and scaffolding verifier. That makes it interesting to package nerds who care about small Go CLIs, documentation examples, generated project skeletons, and terminal-friendly visualization of nested data.

Timeline

  • 2019-02-12: Public repository first commit.
  • 2021-05-30: GitHub repository metadata records repository creation.
  • 2022-08-19: Release metadata includes v1.7.12.
  • 2020s: README documents Go package, Markdown CLI, WebAssembly Tree Maker, and xtree structured-data workflows.

Related projects

  • The README acknowledges related tree-output tools for cloud storage, including stree for Amazon S3 and gcstree for Google Cloud Storage. In use, gtree also sits near the classic `tree` utility, Markdown processors, and small JSON/YAML/TOML inspection tools.

security posture

No protected-tool coverage found yet

No matching local secret-handling manifest was found for gtree. Nucleus package metadata is still published here so future coverage has a stable package URL.

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Build metadata lists 1 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
gtreecliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version1.14.9
manager updated2026-07-01
local dataok
upstreamcurrent
latest detectedv1.14.9

https://github.com/ddddddO/gtree

  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:gtree
Version1.14.9
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/gtree
Homepagehttps://ddddddo.github.io/gtree/
Repositoryhttps://github.com/ddddddO/gtree
Upstream docshttps://ddddddo.github.io/gtree
LicenseBSD-2-Clause
Source archivehttps://github.com/ddddddO/gtree/archive/refs/tags/v1.14.9.tar.gz
Last updated2026-07-01T18:22:32Z
Pulseupdated
Build dependenciesgo
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namegtree
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Nix95%

gtree

nix profile install nixpkgs#gtree
  • normalized package name match
  • Matched by: Gtree
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/gt/gtree/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
MacPorts95%

gtree

sudo port install gtree
  • normalized package name match
  • Matched by: Gtree
MacPorts ports tree · api.github.com · MacPorts ports tree: sysutils/gtree/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment