Skip to content

CLI Reference

Complete command reference for the cora CLI.

Global Flags

FlagDescription
--config <path>Override config file path (default: .cora.yaml)
--format <fmt>Output format: pretty, json, compact, sarif
--no-colorDisable colored output
--provider <name>Override provider
--model <name>Override model
--base-url <url>Override API base URL
--api-key <key>Override API key
--verboseEnable debug logging

Commands

Setup & Config

CommandDescription
cora initCreate .cora.yaml config file and install pre-commit hook
cora init --forceOverwrite existing config file
cora init --no-hookSkip pre-commit hook installation
cora config showShow resolved configuration
cora config show --globalShow global config (~/.cora/config.yaml)
cora config show --projectShow project config (.cora.yaml)
cora config set <key> <value>Set a config value
cora config set <key> <value> --globalWrite to global config instead of project
cora config validateValidate configuration and report status
cora auth loginSave API key interactively
cora auth login --provider <name> --api-key <key>Non-interactive login
cora auth login --model <model>Set model with provider
cora auth login --base-url <url>Custom API endpoint
cora auth login --forceOverwrite existing key without confirmation
cora auth statusCheck current auth status
cora auth removeRemove stored API key
cora providersList detected AI providers
cora installAuto-detect and configure AI coding agents for Cora MCP
cora install --listList detected agents without installing
cora install --agents "cline,cursor"Install specific agents
cora install --dry-runShow what would be changed
cora install --forceOverwrite existing cora entry
cora install --yesInstall ALL detected agents (non-interactive)
cora hook installInstall pre-commit hook
cora hook uninstallRemove pre-commit hook
cora completion <shell>Generate shell completions (bash/zsh/fish/powershell)

Review & Scan

CommandDescription
cora reviewReview code changes (default: tries staged, then unpushed)
cora review --stagedReview staged git changes
cora review --unstagedReview unstaged working changes
cora review --unpushedReview unpushed commits
cora review --base <branch>Compare current branch against target
cora review --commit <ref>Review specific commit or range
cora review --diff-file <path>Review from a diff file
cora review --uploadReview and upload SARIF to GitHub Code Scanning
cora review --no-auto-chunkDisable auto-chunking for large diffs
cora review --progressOutput NDJSON progress events to stderr
cora review --quietSuppress all output except result
cora review --output-file <path>Write output to file instead of stdout
cora review --severity <level>Filter by min severity (info/minor/major/critical)
cora review --no-cacheDisable review caching
cora review --ciCI mode: skip diff size limit, exit 2 if any findings
cora review --max-diff-size <chars>Override max diff size
cora review --memoryRecall project patterns from Uteke before review
cora review --learnSave findings to Uteke after review (implies --memory)
cora commitReview staged + generate commit message + commit (HITL prompt)
cora commit --yoloAuto-commit without prompts
cora commit --forceCommit even if quality gate fails
cora commit --no-reviewSkip review, only generate commit message
cora commit --editAlways open $EDITOR to edit message
cora commit --streamStream LLM response in real-time
cora commit --quietSuppress all output except result
cora scan [--path <dir>]Scan files for issues (default: current directory)
cora scan --include "src/**/*.rs"Include glob patterns
cora scan --exclude "vendor/**"Exclude glob patterns
cora scan --extensions "ts,js"Additional file extensions to scan
cora scan --incrementalScan only files changed since last scan
cora scan --focus securityOverride focus areas
cora scan --batch-files NMax files per LLM batch (default: 20)
cora scan --no-continue-on-batch-errorAbort on batch failure (default: skip and continue)

Code Intelligence

See Code Intelligence for detailed usage.

CommandDescription
cora indexIndex project symbols into SQLite + usearch
cora index --rebuildRebuild index from scratch
cora index --watchAuto-sync file watcher (2s poll interval)
cora index --statsShow index statistics (symbol count, languages, DB size)
cora index --pruneRemove stale entries for deleted files
cora explore <query>Keyword search (FTS5) over symbol names
cora explore --kind functionFilter by symbol kind
cora explore --file "src/"Filter by file path prefix
cora explore --language rustFilter by language
cora explore --limit NMax results (default: 50)
cora brain <query>Hybrid search: FTS5 + vector + graph → RRF fusion
cora brain --limit NMax results (default: 20)
cora callers <symbol>Find all callers of a symbol (reverse call graph)
cora callers --limit NMax callers to return (default: 50)
cora impact <symbol>Analyze blast radius of changing a symbol
cora impact --depth NTraversal depth (default: 3)
cora trace <symbol>Trace call chains (depth-limited BFS)
cora trace --direction incomingTrace callers instead of callees
cora trace --depth NMax hops (default: 3)
cora archArchitecture overview — modules, edge types, top connectors
cora affected <files...>Find test files affected by source changes
cora affected --stdinRead changed files from stdin (pipe from git diff --name-only)
cora affected --filter "*test*"Custom test file glob pattern
cora dead-codeDetect dead code — functions/methods with zero callers
cora dead-code --include-testsInclude test functions in results
cora dead-code --min-lines NFilter out tiny functions
cora query "main -> *"Query the code graph with simple patterns
cora query --limit NMax results (default: 50)
cora routesList detected HTTP routes (Axum, Actix, Express, FastAPI, Flask, Go)
cora routes --method GETFilter by HTTP method
cora routes --prefix /apiFilter by path prefix

Quality Profiles

CommandDescription
cora profile listList available quality profiles
cora profile show <name>Show details of a specific profile
cora profile validate <path>Validate a custom profile YAML file

Findings & Debt

CommandDescription
cora findings listShow open findings
cora findings list --allShow all findings including resolved
cora findings list --severity majorFilter by severity
cora findings list --file "src/main.rs"Filter by file
cora findings list --jsonJSON output
cora findings statsSummary counts with resolution rate
cora findings dismiss <id>Mark finding as won't-fix
cora findings dismiss <id> --reason "..."Dismiss with reason
cora findings reopen <id>Reopen a dismissed/resolved finding
cora debtShow tech debt report from review history
cora debt --jsonDebt report as JSON (for CI/dashboards)
cora debt --trendQuality score trend graph
cora debt --badgeShields.io badge JSON endpoint
cora debt --estimateShow estimated fix time
cora debt --since v0.4.5Filter by git tag or date
cora debt --branch mainFilter by branch
cora upload-sarif <file>Upload SARIF to GitHub Code Scanning

MCP Server

CommandDescription
cora mcpStart MCP server for AI coding agents (Claude Code, Cursor, Windsurf)
cora serveStart MCP server with auto-reindex on startup

Quick Examples

bash
# Review staged changes (what's about to be committed)
$ cora review --staged
bash
# Compare your feature branch against main
$ cora review --base main
bash
# Full project scan with incremental caching
$ cora scan --incremental
bash
# Install pre-commit hook
$ cora hook install
bash
# Review + auto-generate commit message + commit
$ cora commit

# YOLO mode — auto-commit, no prompts
$ cora commit --yolo
bash
# Index your project and search with Brain Mode
$ cora index
$ cora brain "error handling"
$ cora brain "TokenEmbedding" --json --limit 5
bash
# Trace call chains and view architecture
$ cora trace main
$ cora arch
bash
# Find callers and analyze impact
$ cora callers handle_request
$ cora impact process_order --depth 5
$ cora affected src/order.rs src/payment.rs