Tree Output

treemand <cli> discovers any CLI’s full command hierarchy and renders it as a color-coded tree. Point it at anything: git, kubectl, docker, aws, your own tools.

treemand tree demo

Basic usage

treemand git                        # full tree at default depth (3)
treemand --depth=2 kubectl          # limit recursion depth
treemand --filter=remote git        # only show nodes matching pattern
treemand --exclude=help git         # hide nodes matching pattern
treemand --commands-only kubectl    # subcommands only — no flags or positionals

Display styles

Four styles, switchable with --tree-style or T inside the TUI:

treemand --tree-style=default git   # ▼/▶/• icons with inline flag pills
treemand --tree-style=columns git   # name · description alignment
treemand --tree-style=compact git   # maximum density — names only
treemand --tree-style=graph git     # ├──/└── connectors like the `tree` command

Icon presets

treemand --icons=unicode git        # default (▼ ▶ •)
treemand --icons=ascii git          # safe for all terminals (v > -)
treemand --icons=nerd git           # Nerd Font glyphs (requires patched font)

Useful flags

FlagDescription
--depth=NLimit recursion depth (default 3; -1 = unlimited)
--filter=<pattern>Show only nodes whose name matches
--exclude=<pattern>Hide nodes whose name matches
--commands-onlyHide flags and positional arguments
--full-pathShow full command paths instead of just names
--no-colorDisable colored output
--no-cacheSkip the discovery cache for this run
--timeout=NDiscovery timeout in seconds (default 30)
--strategy=<list>Discovery strategies: help (default), man, completions