Map. Clean. Document. Repeat.
Because folder structure is documentation β and now, itβs automated.
π§ Why I Built folder_tree
Every time I opened an old project folder, I saw the same mess:
Too many files, deeply nested modules, ignored clutter, and no clear overview.
So I wrote folder_tree β a CLI that visualizes, filters, and documents any folder tree in seconds.
Itβs minimal, scriptable, and designed to run in CI/CD or your local terminal.
Because sometimes you just need to see the shape of things.
βοΈ What It Does
β
Outputs your folder tree in Markdown
β
Excludes noise automatically (.terraform/, node_modules/, .DS_Store/, etc.)
β
Respects .treeignore files and presets
β
Optionally includes hidden files like .env, .git
β
Counts total files/folders + disk usage
β
Templated, versioned, and Homebrew-installable
π Quickstart
brew tap raymonepping/folder-tree-cli
brew install raymonepping/folder-tree-cli/folder-tree-cli
folder_tree --preset terraform --output markdown
Need hidden files or disk size?
folder_tree --hidden --compute --output markdown
Set a custom config (optional):
export FOLDER_TREE_HOME=/opt/homebrew/opt/folder-tree-cli/share/folder-tree-cli
β¨ Example Output
π Target: my_project
π‘οΈ Excludes from: .treeignore
./
βββ bin/
β βββ folder_tree*
βββ tpl/
β βββ folder_tree_md.tpl
βββ README.md
βββ FOLDER_TREE.md
5 directories, 10 files
π¦ Total: 107.6 KB
π‘ Use Cases
- π§± Document structure in your README.md
- π Auto-generate folder views for GitHub projects
- π Catch bloated or outdated folders at a glance
𧬠Under the Hood
- Modular template system (tpl/)
- .treeignore and --preset for dynamic filtering
- Markdown or terminal output (--output markdown)
- Git-tracked file mode (--git)
- Supports --compute, --history, --verbose, --bump-version
π Final Thoughts
You donβt need another pretty tree diagram.
You need a clean, structured snapshot of your project β ready for docs, reviews, or CI logs.
And now youβve got one.
π¦ Grab it from GitHub (https://raw.githubusercontent.com/raymonepping/homebrew-folder-tree-cli/refs/heads/main/bin/folder_tree)
π§ Built for clarity. Documented by default.
ποΈ Quote to remember:
βStructure isnβt boring β itβs your first line of clarity.β
Want to read more about folder_tree?
Top comments (0)