Explore the Code Graph
Understand dependencies, impact, and critical files. Read more
The Unfault CLI is how you analyze code, explore dependencies, and query your project’s health from the terminal.
# Example: Linux x86_64 (glibc)mkdir -p ~/.local/bincurl -L -o ~/.local/bin/unfault https://github.com/unfault/cli/releases/latest/download/unfault-x86_64-unknown-linux-gnuchmod +x ~/.local/bin/unfaultPick the matching artifact for your OS/CPU from the GitHub releases page: https://github.com/unfault/cli/releases/latest
cargo install unfaultgit clone https://github.com/unfault/clicd clicargo build --releaseAuthenticate using device flow:
unfault loginFollow the prompts to open a browser and complete authentication. Your token is stored securely for future commands.
Check your status anytime:
unfault statusAnalyze your codebase for production-readiness:
unfault reviewFilter by dimension:
unfault review --dimension stabilityGet detailed output with suggested fixes:
unfault review --output fullWhen Unfault scans a workspace, it tries to stay out of your way.
It only considers supported source files, and it skips things that are usually not worth reviewing.
By default Unfault respects the same ignore rules you already rely on:
.gitignore (including global gitignore and .git/info/exclude).ignore.dockerignoreOn top of that, Unfault also skips common dependency/build directories even if you forgot to ignore them (for example node_modules, target, dist, build, .venv).
There isn’t a separate Unfault-specific “ignore list” to maintain - if you want a path excluded, add it to your ignore files.
If Unfault says it found 0 files, the usual causes are:
--include-testsQuery your project’s health in natural language:
unfault ask "What are my main stability concerns?"For AI-synthesized answers, configure an LLM and use --llm:
unfault config llm openai --model gpt-4ounfault ask "How do we handle timeouts?" --llmCheck what depends on a file before changing it:
unfault graph impact src/api/auth.pyFind the most critical files in your codebase:
unfault graph criticalSee which files use a library:
unfault graph library requestsFor CI/CD integration:
| Code | Meaning |
|---|---|
| 0 | Success, no findings |
| 5 | Findings detected |
| 1-4, 6-10 | Various errors (see reference) |
Example CI usage:
unfault reviewif [ $? -eq 5 ]; then echo "Findings detected" unfault review --output fullfiExplore the Code Graph
Understand dependencies, impact, and critical files. Read more
Ask Questions
Query your codebase in natural language. Read more
SLO Discovery
Link cloud SLOs to your routes. Read more
Use with AI Agents
Integrate with Claude, Cursor, and others. Read more
For complete command options, flags, and examples, see the CLI Reference.