Command-line tool
tre-command
brew/tre-command
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
Tree command, improved
At a glance
- Type
- Command-line tool
- Install on
- Windows, macOS, Linux
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
Windows
winget install --id duan.tre -e scoop install tre-command
macOS
brew install tre-command
Linux
brew install tre-command
Print directories only
tre -d
Print JSON containing files in the tree hierarchy instead of the normal tree diagram
tre -j
Print files and directories up to the specified depth limit (where 1 means the current directory)
tre -l depth
Related command-line tools
- powerping
Small improved command line ICMP ping program lovingly inspired by windows and linux. - tree-sitter-config
User configuration of tree-sitter's command line programs - tree-rs
tree-rs is a cross platform reimplementation of the linux tree command. It supports colored output and specifying the… - TrueTree
Command-line tool for pstree-like output - otree
Command-line tool to view objects (JSON/YAML/TOML) in TUI tree widget - pstree
Show ps output as a tree - rust-audit-info
Command-line tool to extract the dependency trees embedded in binaries by cargo auditable . - lstr
Fast, minimalist directory tree viewer developer-tools cli tui git command-line filesystem rust-lang command-line-tool…
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents