๐ŸŒฒ Treemand

Visualize and interact with any CLI command hierarchy as a beautiful tree.

release CI license

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

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

treemand demo