๐ฒ Treemand
Visualize and interact with any CLI command hierarchy as a beautiful tree.
What is Treemand?
treemand is a Go CLI tool that discovers and visualizes any CLI command hierarchy โ git, kubectl, aws, docker โ as an intuitive tree, inspired by the classic tree command.
โผ git [--version --verbose]
โโโ โผ remote
โ โโโ โข add <name> <url>
โ โโโ โข remove <name>
โโโ โข commit [--message=<string>]
โโโ โข status
Features
- ๐ Auto-discovery โ discovers commands via
--helprecursion (no config needed) - ๐จ Colored output โ syntax-highlighted tree with configurable color schemes
- ๐ฅ๏ธ Interactive TUI (
-i) โ k9s-inspired explorer with live preview, keyboard + mouse - ๐พ Caching โ SQLite cache for instant repeat lookups
- ๐ญ Configurable icons โ unicode (default), ASCII-safe, or Nerd Font icon sets
- โ๏ธ Config file โ
~/.config/treemand/config.yamlfor persistent settings - ๐ Shell completions โ bash, zsh, fish, PowerShell (with cache-aware CLI suggestions)
- ๐ฆ Zero config โ works with any CLI out of the box
- ๐ Self-dogfooding โ
treemand treemandworks!
Quick Start
# Non-interactive tree
treemand git
# Interactive TUI
treemand -i kubectl
# Limit depth
treemand --depth=2 aws
# ASCII-safe output (no Unicode)
treemand --icons=ascii docker
# JSON output
treemand --output=json docker
Install
# Homebrew (macOS / Linux)
brew tap aallbrig/tap
brew install treemand
# go install
go install github.com/aallbrig/treemand/cli/treemand@latest
Or download a pre-built binary.
Demo
