macOS
brew install gtreelocal Homebrew formula metadata
sudo port install gtreeMacPorts ports tree · sysutils/gtree/Portfile · source: api.github.com
brew
Generate directory trees and directories using Markdown or programmatically. Version 1.14.9 via Homebrew; verified 2026-07-01.
install
brew install gtreelocal Homebrew formula metadata
sudo port install gtreeMacPorts ports tree · sysutils/gtree/Portfile · source: api.github.com
nix profile install nixpkgs#gtreenixpkgs package indexes · pkgs/by-name/gt/gtree/package.nix · source: api.github.com
overview
Generate directory trees and directories using Markdown or programmatically
history
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.
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.
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.
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.
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.
security posture
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.
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
gtree | cli | global executable |
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.
https://github.com/ddddddO/gtree
install metadata
| Package key | brew:gtree |
|---|---|
| Version | 1.14.9 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/gtree |
| Homepage | https://ddddddo.github.io/gtree/ |
| Repository | https://github.com/ddddddO/gtree |
| Upstream docs | https://ddddddo.github.io/gtree |
| License | BSD-2-Clause |
| Source archive | https://github.com/ddddddO/gtree/archive/refs/tags/v1.14.9.tar.gz |
| Last updated | 2026-07-01T18:22:32Z |
| Pulse | updated |
| Build dependencies | go |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | gtree |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
gtree
nix profile install nixpkgs#gtreegtree
sudo port install gtreesource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.