🚀 A powerful CLI tool that generates beautiful README files from your project's folder structure
Transform any project directory into a comprehensive, well-structured README with just one command. Perfect for documenting codebases, project structures, and creating professional documentation.
- 🌳 Beautiful tree structure visualization - Clean, hierarchical project layout
- 📄 File content inclusion - Include actual file contents with syntax highlighting
- 🎯 Smart filtering - Automatically ignores common files (
.git,node_modules, etc.) - 📋 Custom ignore patterns - Use
.foldermd.ignorefile or command flags - 🔍 Hidden file support - Optionally include hidden files and directories
- 📏 Depth control - Limit traversal depth for large projects
- 📊 Project statistics - Automatic file and directory counts
- 🎨 Rich formatting - Professional markdown output with emojis and sections
- 🛠️ Flexible configuration - Extensive CLI options for customization
go install github.com/bete7512/foldermd@latest# Download latest release for your platform
curl -L https://github.com/bete7512/foldermd/releases/latest/download/foldermd-linux-amd64 -o foldermd
chmod +x foldermd
sudo mv foldermd /usr/local/bin/- Linux (amd64, arm64)
- macOS (amd64, arm64/M1)
- Windows (amd64)
# Clone the repository
git clone https://github.com/bete7512/foldermd.git
cd foldermd
# Install dependencies
go mod tidy
# Build the binary
go build -o foldermd
# Install globally (optional)
sudo mv foldermd /usr/local/bin/# Add tap (coming soon)
brew tap bete7512/tools
brew install foldermd# Generate README for current directory
foldermd
# Include files in the tree structure
foldermd --files
# Include file contents with syntax highlighting
foldermd --content
# Generate for specific directory with custom output
foldermd /path/to/project --output PROJECT.mdfoldermd [directory] [flags]| Flag | Short | Default | Description |
|---|---|---|---|
--files |
-f |
false |
Include files in tree structure |
--content |
-c |
false |
Include file contents (implies --files) |
--output |
-o |
README.md |
Output file name |
--ignore |
-i |
.git,.DS_Store,node_modules,*.log |
Comma-separated ignore patterns |
--depth |
-d |
-1 |
Maximum depth (-1 for unlimited) |
--hidden |
false |
Include hidden files and directories |
foldermd version- Show version informationfoldermd init- Create a.foldermd.ignorefilefoldermd --help- Show detailed help