Generate clean project structure trees for README.md from the command line. Works anywhere β no editor needed. Auto-creates README, supports custom ignores, and saves full structure to fs-full.md.
npm install doctree-cli!Logo
README.md β from the terminal, in any project, with zero setup.
bash
npx doctree
`
And instantly add a beautiful project structure to your README.md.
---
π Features
- β
No installation β runs with npx
- π Auto-creates README.md if missing
- π€ Prompts for custom ignores (e.g. cache, logs, *.tmp)
- π³ Smart tree generation with proper indentation
- π Auto-abbreviates large projects (shows ... after 20 lines)
- πΎ Saves full structure to fs-full.md
- π Works everywhere β VS Code, Vim, Sublime, Android Studio, or plain terminal
---
π Usage
In your project root, run:
`bash
npx doctree
`
Youβll be prompted:
`
Any additional folders or files to ignore (comma-separated, e.g. cache, secret.json)? (Press Enter to skip):
`
Type your custom ignores (or press Enter to skip), and:
- β
Tree is inserted into README.md
- β
Or a new README.md is created
- β
Full structure saved to fs-full.md if large
---
π§© Example Output
`text
lib/
βββ main.dart
βββ screens/
β βββ home_screen.dart
β βββ login_screen.dart
β βββ ...
βββ services/
β βββ auth_service.dart
β βββ ...
βββ ...
View full structure β
`
Clean, professional, and ready to share.
---
π Powered by the VS Code Extension
This CLI shares the same engine as the DocTree VS Code Extension β now available outside the editor.
π Use the extension for in-editor speed
π Use the CLI for universal access
---
π οΈ Requirements
- Node.js (v14 or higher)
- Any project folder with a file system
- No admin rights needed
---
π¦ Publish & Contribute
This package is open-source and published on npm:
π https://www.npmjs.com/package/doctree
Want to help improve it?
We welcome contributions!
$3
1. Fork the repo: https://github.com/your-username/doctree
2. Create a feature branch
3. Commit your changes
4. Push and open a PR
---
π Issues & Feedback
Having trouble? Want to suggest a feature?
- π¬ For CLI help: Visit the GitHub Community - Software Development board
- π£ Give feedback: Open a discussion in the npm feedback forum
- π Troubleshoot builds: Use Gradle Help for deep debugging with Build Scanβ’
---
π License
MIT License β see LICENSE
---
π Thank You!
Thanks for using doctree β the simple, smart way to document your project structure.
Letβs make every README.md` beautiful. π«