AptLynx

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

Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents