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

CommandDescription
cora initCreate .cora.yaml config file
cora commitReview staged + generate commit message + commit (HITL prompt)
cora commit --yoloAuto-commit without prompts (YOLO mode)
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 reviewReview code changes (default: staged files)
cora review --stagedReview staged git changes explicitly
cora review --memoryRecall project patterns from Uteke before review
cora review --learnRecall + save findings to Uteke (implies --memory)
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 scan <path>Scan files for issues
cora scan . [--incremental]Scan only changed files
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 hook installInstall pre-commit hook
cora hook uninstallRemove pre-commit hook
cora auth loginSave API key to ~/.cora/auth.toml
cora auth statusCheck current auth status
cora auth removeRemove stored API key
cora providersList detected AI providers
cora upload-sarif <file>Upload SARIF to GitHub Code Scanning
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 completion <shell>Generate shell completions (bash/zsh/fish)
cora mcpStart MCP server for AI coding agents (Claude Code, Cursor, Windsurf)
cora debtShow tech debt report from review history
cora debt --jsonDebt report in JSON format
cora debt --trendQuality score trend graph
cora debt --since <date|tag>Filter by date or git tag
cora debt --branch <name>Filter by branch name

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
# Install both Cora + Uteke (code review with memory)
$ curl -fsSL https://raw.githubusercontent.com/codecoradev/cora-cli/main/install-bundle.sh | sh

# Then review with memory:
$ cora review --staged --memory --learn

Released under the MIT License.