TRE(1)

✨ NAME ✨

okay so you're looking at tre β€” that's it, that's the name, it's literally just tre. short, sweet, iconic. πŸ’…


🌸 DESCRIPTION 🌸

tre-command 0.4.0 by Daniel Duan <daniel@duan.ca> β€” it's the tree command, but improved. bestie that's the whole pitch. better tree. no cap. 🌳✨

πŸŽ€ USAGE:

tre [OPTIONS] [PATH]

πŸ“ ARGS:

  • <PATH> β€” where you want the tree to start, duh 🌱 default is just . so if you forget it, it peeks at wherever you're standing rn 🫢

πŸ’… OPTIONS:

  • -a, --all β€” print everything, including the hidden ones. yes the dotfiles too, we're not being shy today πŸ™ˆ
  • -c, --color <WHEN> β€” controls when the output gets its little glam-up 🌈 automatic means tre will include colors when it's printing to a terminal, and disables them otherwise. default: automatic. possible values: automatic, always, never.
  • -d, --directories β€” directories only in the output. files, get out of the frame, this is her moment πŸ‘‘
  • -e, --editor [<COMMAND>] β€” makes an alias for every result shown, and slaps a number in front of each filename so you know which alias is which. for example, a number 42 means a shell alias e42 has been created. running e42 opens the associated file or directory with $EDITOR (or a default program for the file type on Windows), or with a command you specified along with this command πŸ”₯
  • -E, --exclude <PATTERN> β€” excludes paths matching a regex pattern. repeatable, so stack as many as you want, go off πŸ’…
  • -h, --help β€” prints help information. your little safety net when you forget everything 🫢
  • -j, --json β€” spits out JSON instead of the tree diagram. for when you need data, not ~aesthetics~ πŸ“Š
  • -l, --limit <LIMIT> β€” caps how deep the tree goes in the output. set boundaries, bestie βœ‚οΈ
  • -p, --portable β€” generates portable (absolute) paths for editor aliases. by default aliases use relative paths for better performance ⚑
  • -s, --simple β€” uses normal print despite gitignore settings. heads up tho: -a has higher priority, so -a wins that fight πŸ₯Š
  • -V, --version β€” prints version information. in case you need receipts πŸ“
ok and this is me using my main character energy to remind you: the option details above are the exact facts, don't come for me if you skip reading them 😭

πŸŽ€ and that's the whole page, bestie!! this was tre 0.4.0 from May 2026 β€” thank you for reading my little manual rant, mwah πŸ’‹ go build something cute πŸŒΈπŸ¦‹βœ¨

πŸ“¦ where this page comes from