Map your codebase in seconds.

The zero-config CLI for generating beautiful, markdown-ready directory structures for documentation, AI prompts, and PRs.

default.sh
~/projectnpx repo-tree
my-app/
├── app/
│ ├── api/
│ └── dashboard/
├── src/
│ ├── components/
│ └── lib/
├── next.config.js
└── package.json
custom.sh
~/projectnpx repo-tree --emoji --depth=3
📁 my-app/
├── 📁 app/
│ ├── 📁 api/
│ │ └── 📁 auth/
│ └── 📁 dashboard/
│ └── 📄 page.tsx
├── 📁 src/
│ ├── 📁 components/
│ │ └── 📁 ui/
│ └── 📁 lib/
│ └── 📄 utils.ts
└── 📄 package.json

Zero Config

Instant setup out of the box. Automatically ignores node_modules, .git, and respects your local .gitignore rules.

Auto-Docs

Use the --update-readme flag to intelligently inject and sync the tree directly into your documentation.

Fully Flexible

Customize every aspect. Toggle emojis, set specific recursion depths, or filter out specific file types easily.

Command Reference

Everything you need to customize your output.