CLI reference
CLI overview
All `repowise` commands at a glance.
| Command | Purpose |
|---|---|
init | Full wiki generation for a repository |
update | Incremental wiki regeneration from new commits |
reindex | Rebuild vector search index from existing pages |
serve | Start API server + web UI |
mcp | Start MCP server for editor integration |
search | Search the wiki by keyword, meaning, or symbol name (guide) |
ask | Ask a question, get a cited answer (LLM call) (guide) |
context | Triage card for files/modules/symbols: summary, hotspot, fix history (guide) |
symbol | Read one function/class/constant with live-verified line bounds (guide) |
why | Why the code is shaped this way: decisions + git archaeology (guide) |
status | Show wiki sync state + statistics |
costs | Estimate LLM costs for generation |
distill | Run a command, print a compact errors-first rendering (guide) |
expand | Restore output behind a [repowise#<ref>] omission marker |
saved | Tokens & dollars saved by distillation (--missed for foregone savings) |
corrections | Recurring fail→fixed command fumbles mined from agent transcripts |
workspace | Manage multi-repo workspaces |
decision | Manage architectural decision records |
hook | Manage post-commit git hooks + the distill rewrite hook (guide) |
agents | Wire repowise into Claude Code, Codex, Cursor, VS Code, OpenCode, Hermes (guide) |
uninstall | Remove repowise from this repo, and optionally this machine (guide) |
security | Scan for leaked secrets and risky patterns, including full git history (guide) |
watch | Auto-sync wiki on file changes |
augment | Enrich Claude Code tool calls with graph context |
export | Export wiki as markdown / json |
generate-claude-md | Generate CLAUDE.md from the wiki |
dead-code | List unused code |
doctor | Health checks on wiki setup |
health | Score every file across defect risk, maintainability, and performance (guide) |
risk | Score the defect risk of a commit or diff range (guide) |
coverage | Ingest and inspect test-coverage reports |
impacted-tests | List the tests a diff actually exercises |
restyle | Switch wiki style and regenerate every page in the new voice (guide) |
wiki-styles | List available wiki styles (guide) |
whats-new | Show release notes since you last looked |
telemetry | Inspect/control anonymous opt-out usage telemetry |
login / logout / whoami | Hosted repowise.dev account sign-in and status |
delete | Delete a repo's stored index (not source files) (guide) |
Each command is documented in full on the pages in this section.
Git worktrees
Index a linked git worktree without re-indexing from scratch, by seeding from the base checkout and catching up incrementally.
Indexing: init, update, reindex
The three commands that build and maintain repowise's intelligence layers. init parses everything from scratch, update is incremental on each commit, reindex rebuilds the vector store without re-running the LLM.