RepoAtlasv0.2.1 • Open Source
HomeDocsCore Modules

CLI Command Reference

Complete reference for the @repoatlasdev/cli command line tool.

4 min readUpdated July 22, 2026

The @repoatlasdev/cli package provides a fast, predictable CLI tool for generating repository visualizations.

Installation

bash
1# Global install 2npm install -g @repoatlasdev/cli 3 4# Or run with npx (no install) 5npx @repoatlasdev/cli generate .

Primary Commands

repo-atlas generate [dir]

Generates a visual repository tree.

OptionAliasDescriptionDefault
--theme <name>-tRendering themeunicode
--icons <pack>-iIcon packemoji
--depth <number>-dMax recursion depth10
--sort <type>-sSort strategy (name, size, type)name
--only <type>Filter nodes (all, files, directories)all
--output <file>-oOutput file pathstdout

Example:

bash
repo-atlas generate ./my-project --theme vscode --icons material --depth 5 --output STRUCTURE.md

repo-atlas preview [dir]

Launches a live interactive watcher that re-renders the tree structure in real-time as files change.

bash
repo-atlas preview ./my-project --theme material

repo-atlas doctor

Executes environment health diagnostics, checking Node version, platform, and registered plugins.

bash
repo-atlas doctor

Available Themes

ThemeDescription
unicodeClean Unicode box-drawing characters
vscodeVS Code-native file tree style
materialMaterial Design icons & colors
nerd-fontNerd Font glyphs
asciiClassic ASCII pipes & dashes
markdownMarkdown-formatted nested lists
jsonStructured JSON output
mermaidMermaid.js diagram syntax

Available Icon Packs

PackDescription
emojiColorful emoji icons (📁 📄 ⚙️)
vscodeVS Code file icons
materialMaterial Design file icons
nerdNerd Font devicons
noneNo icons