Flags & Commands
All available CLI flags and sub-commands for pr-review.
Main command
pr-review [review] [flags]Flags reference
| Flag | Description |
|---|---|
(no flags) | Interactive mode — prompts for provider, model, branches |
--staged | Review only staged changes (git diff --staged) |
--model=<id> | Override model for this run (e.g. --model=claude-opus-4-6) |
--focus=<area> | Focus the review on a specific area (security, performance, bugs) |
--base=<branch> | Override destination branch for this run |
--output=<file> | Override output filename for this run |
--provider=<id> | Override provider (claude, copilot, codex, gemini, cursor) |
--version | Print pr-review version |
--help | Show help text |
Sub-commands
| Command | Description |
|---|---|
pr-review review | Explicit review subcommand (same as running pr-review alone) |
pr-review config | View current config and update values interactively |
pr-review --help | Show help text and available flags |
pr-review --version | Print installed version |
Focus areas
When using --focus, the review prompt is adjusted to emphasise that area:
| Value | Description |
|---|---|
security | Injection, auth, data exposure, secrets |
performance | Complexity, N+1 queries, memory, caching |
bugs | Logic errors, edge cases, null handling |
style | Code readability, naming, structure |
Examples
terminal
# Basic review (interactive)
pr-review
# Explicit review subcommand
pr-review review
# Review staged changes only
pr-review review --staged
# Security-focused review with a specific model
pr-review review --focus=security --model=claude-opus-4-6
# Non-interactive: specify provider, model, and base branch via flags
pr-review review --provider=gemini --model=pro --base=main
# Update config
pr-review config
# Check version
pr-review --version