Command-line tool
tre
brew/tre
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
Lightweight, POSIX-compliant regular expression (regex) library cli, filesystem, tree
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 polygonstew.read.tre -e
macOS
brew install tre
Linux
brew install tre
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
- s3ql
POSIX-compliant FUSE filesystem using object store as block storage - regex-opt
Perl-compatible regular expression optimizer - ansi-regex
Regular Expression for matching ANSI escape codes. - oniguruma
Regular expressions library - onigmo
Regular expressions library forked from Oniguruma - pcre2
Perl compatible regular expressions library with a new API - rgxg
C library and command-line tool to generate (extended) regular expressions - grex
Command-line tool for generating regular expressions
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents