CLI Commands
Learn about all CLI commands in detail. Read more
This guide walks you through running your first review and understanding the results.
Navigate to your project directory and run:
unfault reviewUnfault analyzes your codebase and shows what it finds:
Looks good overall, with a couple spots that deserve a closer look. Two themeskeep showing up: other cleanup and resilience hardening. Starting point:weather.py (HTTP call to external service in `get_weather` lacks circuitbreake...); then weather.py (FastAPI app 'app' missing correlation IDmiddleware).
At a glance · 2 calls without timeouts - could hang if a service is slow · Circuit breakers would help fail fast when dependencies are down · Rate limiting would protect against abuse · CORS config needed if browsers will call this API
────────────────────────────────────────────────────────────────────────────────1112ms - python / fastapi - 1 fileTip: use --output full to drill into hotspots.The summary tells you what matters. It identifies patterns, suggests where to start, and explains why.
To see the full findings with suggested fixes:
unfault review --output fullThis shows each finding with its location, explanation, and a suggested code change.
Choose the format that fits your workflow:
# Grouped by severityunfault review# Summary statistics onlyunfault review --output concise# Full details with diffsunfault review --output full# Machine-readable for CI/CDunfault review --output json# Code Scanning readyunfault review --output sarifFocus on specific types of issues:
# Only stability issuesunfault review --dimension stability
# Only performance issuesunfault review --dimension performance
# Multiple dimensionsunfault review --dimension stability --dimension correctnessUse exit codes to gate deployments:
unfault reviewif [ $? -eq 5 ]; then echo "Production readiness issues found. Blocking deployment." exit 1fi