Command-line tool
treefmt
brew/treefmt
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
One CLI to format the code tree
At a glance
- Type
- Command-line tool
- Install on
- macOS, Linux
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
macOS
brew install treefmt
Linux
brew install treefmt
Related command-line tools
- dtc
Device tree compiler - tree
Display directories as trees (with optional color/HTML output) - tree-sitter-generate
Library for generating C source code from a tree-sitter grammar - cymbal
Language-agnostic code navigation CLI powered by tree-sitter - sqlfluff
SQL linter and auto-formatter for Humans - druk
Terminal code editor with a file tree, tabs, search, git integration and syntax highlighting. - swift-format
Formatting technology for Swift source code - elm-format
Elm source code formatter, inspired by gofmt
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents