Modern developer-friendly CLI tool to visualize project structures with filtering, JSON output, icons, and customizable ignore rules.
- Windows
- Linux
- macOS
npm install -g folderpluspnpm add -g folderplusyarn global add folderplusbun add -g folderplusnpx folderplus
npx folderplus <command> [options]folderplus versionor
folderplus --versionfolderplus treefolderplus tree --files-onlyfolderplus tree --dirs-onlyfolderplus tree --depth 1Shows only the root level.
folderplus tree --depth 2Shows one nested level inside the root.
folderplus tree --only js,tsExtensions should be provided without dots.
folderplus tree --ignore dist,build,tempfolderplus tree --allfolderplus tree --sort name
folderplus tree --sort typefolderplus tree --json| Flag | Description |
|---|---|
--no-icons |
Disable icons |
--all |
Include entries normally ignored |
--files-only |
Show only files |
--dirs-only |
Show only directories |
--sort <mode> |
Sort by name or type |
--depth <n> |
Limit tree depth |
--only <ext> |
Filter by extensions, e.g. js,ts |
--ignore <dirs> |
Exclude directories, e.g. dist,build |
--json |
Output tree as JSON |
Run inside your project folder:
folderplus tree --jsonExample output:
{
"name": "my-app",
"type": "directory",
"children": [
{
"name": "src",
"type": "directory",
"children": []
},
{
"name": "package.json",
"type": "file"
}
]
}The root
nameis the current directory name where the command is executed.
By default, FolderPlus ignores:
node_modules.git- Patterns listed in
.gitignorefiles (root and nested)
Custom ignores:
folderplus tree --ignore dist,build,tempSupports gitignore-style glob patterns and negation (for example:
*.logand!important.log). Use--allto bypass default and.gitignoreexclusions. Explicit--ignorestill applies with--all.
- Visualize large codebases
- Generate project structures for documentation
- Export project trees as JSON
- Quickly inspect repositories
- Improve developer workflow and debugging
- Clean project tree visualization
- Optional icons
- Filter files or directories only
- Filter by file extensions
- Custom ignore support
- JSON output for tooling and automation
- Fast and lightweight
- Cross-platform support
folderplus --helpMIT
Maintained by SMORIGINALS

