macOS
brew install gtreelocal Homebrew formula metadata
sudo port install gtreeMacPorts ports tree · sysutils/gtree/Portfile · source: api.github.com
brew / rank 5367
Generate directory trees and directories using Markdown or programmatically. Version 1.14.9 via Homebrew; verified 2026-07-27. Also installable with nix: nix profile install nixpkgs#gtree.
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 | executable | indexed executable | Discovered from the local executable index. |
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.
install metadata
| Package key | brew:gtree |
|---|---|
| Version | 1.14.9 |
| Package manager | Homebrew |
| Homepage | https://ddddddo.github.io/gtree/ |
| Repository | https://github.com/ddddddO/gtree |
| Last updated | 2026-07-27T14:57:53+02:00 |
| Pulse | updated |
| Bottle | not recorded |
| Service | none declared |
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.