Skip to main content
Generated from the help output of CodeRabbit CLI 0.9.0. cr is the short alias for coderabbit. Run coderabbit <command> --help to see the same information in your terminal.

Global usage

CodeRabbit CLI for code review and cloud coding. Usage: coderabbit [options] [command]

Environment variables

API keys use --api-key ā€œ<key>ā€ with review or auth login; there is no API-key environment variable.

Commands

auth

Authentication commands Usage: coderabbit auth [options] [command]
Examples

auth login

Authenticate with CodeRabbit Usage: coderabbit auth login [options]
Examples
--agent is only supported for localhost browser callbacks and never accepts pasted OAuth tokens.

auth logout

Clear local authentication Usage: coderabbit auth logout [options]
Examples

auth status

Show current authentication status Usage: coderabbit auth status [options]
Examples

auth org

Switch the active organization Usage: coderabbit auth org [options]
Examples

review

AI-driven code review for the current Git workspace Usage: coderabbit review [options] [command] A review that fails or doesn’t cover every file exits with code 1, even after printing findings; see Exit codes. For which changes each scope flag selects, see Local review.
Examples
  • Plain text is the default review mode.
  • Use coderabbit auth login --agent for agent-driven OAuth login.
  • --remote requires --base and --source-branch, and runs outside any git checkout.

review findings

Show the most recent local review with stored findings Usage: coderabbit review findings [options]
Examples
  • A newer review with no stored findings does not hide older findings.
  • Clearing is scoped to the review directory, current branch, and base branch.
  • Findings stored under any other scope are left unchanged.

pullrequest

Read existing CodeRabbit output without starting a review. Requires exactly one of --show-prompts or --show-threads. Usage: coderabbit pullrequest [options] <number-or-url> This command reads CodeRabbit’s existing output for the pull request and does not start a review. Pass exactly one of --show-prompts or --show-threads: the command fails without one, and the two cannot be combined. If no prompt is found, check that reviews.enable_prompt_for_ai_agents is enabled in the configuration and that CodeRabbit has finished reviewing the pull request. The command needs a CodeRabbit SaaS login or a stored API key, and self-hosted logins are not supported. Unlike coderabbit review, it does not start sign-in for you: if you have neither, run coderabbit auth login first.
Examples
  • CodeRabbit SaaS sign-in or a stored agentic API key is required; the repository must be installed in the active organization.
  • Only github.com pull requests are supported. A full URL works outside a git checkout.

stats

Show statistics from locally stored review history Usage: coderabbit stats [options]
Examples

usage

Show included-review availability and billing-period usage Usage: coderabbit usage [options]
Examples

update

Update CodeRabbit CLI to the latest version Usage: coderabbit update [options] When a newer version is available and Homebrew manages your installation, coderabbit update installs nothing. It prints the new version and the brew upgrade coderabbit command, then exits with status 0, so a script can’t treat a successful exit as proof that the CLI was updated. On Windows, the update finishes after the command exits; see Update CodeRabbit CLI.
Examples
Homebrew installations must be updated with brew upgrade coderabbit.

config

Create or configure repository settings through a guided flow Usage: coderabbit config [options] [command]
Examples
Schema: https://www.coderabbit.ai/integrations/schema.v2.json

doctor

Check CodeRabbit CLI installation and local review readiness Usage: coderabbit doctor [options]

skills

Install or update every skill in the latest verified CodeRabbit skills release. Detected agents preview changes for approval; terminal users confirm interactively. Usage: coderabbit skills [options]
Examples
Agent flow: show the plan to the user and ask for approval. Only after approval, run the command in the final action_required JSON record. A changed plan requires fresh approval. No skill files are changed by the preview.

code

Use the same Coding Agent and skill library as the web app. Coding Agent commands are in beta. Usage: coderabbit code [options] [command] Every coderabbit code command needs a CodeRabbit SaaS user login and acts in your selected organization. API key, self-hosted, and SSO workspace logins are not supported (requirements). If no organization is selected, run coderabbit auth org in an interactive terminal first. To learn what the cloud Coding Agent does with the work you send it, see Coding Agent.

code handoff

Create a new CodeRabbit Cloud task with a summary, optional plan, and automatically discovered session transcript Usage: coderabbit code handoff [options] --summary is required. Run the command from a clean checkout of a branch that has an origin remote. Untracked files count as changes, so keep the summary and plan files outside the repository or commit them first. For what is uploaded and what happens next, see Continue a local session in the cloud.

code ls

List the 20 most recently updated cloud tasks in the selected organization. Only your tasks are listed unless you pass --all. Archived tasks are not listed. Usage: coderabbit code ls [options]

code show

Show the status, repository, delivery, and pull request health of a cloud task. Usage: coderabbit code show [options] <task>

code new

Start a cloud task on the current branch of the Git repository in this directory. The task starts from that branch on origin. Local commits that are not pushed and uncommitted changes are not included. Usage: coderabbit code new [options] [prompt]

code resume

Open a cloud task in the terminal. Shows its trace and live updates, and lets you send messages, steer the running turn, answer agent questions, and stop the turn. Closing the view does not stop the task. With --agent, send at most one message, steer, or answer, then stream newline-delimited JSON until the turn ends, the agent asks a blocking question, or 9 minutes pass. Usage: coderabbit code resume [options] [task]

code cancel

Stop the running turn and drop queued messages. The task stays open: a new message starts a new turn. Usage: coderabbit code cancel [options] <task>

code ask

Ask the task’s side chat a question and print the answer. A side chat reads the task’s conversation and repository. It does not change the task, and the turn of the task keeps running. Each question is billed. The side chat stays open for follow-up questions: pass --follow-up with the turn ID of an earlier answer to keep its context. A task can have 3 open side chats. An idle side chat expires after 24 hours. The CLI cannot close a side chat, so ask later questions about the task with --follow-up. The command waits up to 3 minutes for the task’s environment and up to 15 minutes for the answer. Usage: coderabbit code ask [options] <task> <question>

code plan

Show the latest finalized plan of a cloud task. With --approve, record your approval of that plan version. You cannot approve the plan of a task that you started, and approval does not start implementation. Usage: coderabbit code plan [options] <task>

code push

Deliver the ready changes of a cloud task and wait until the delivery finishes. By default, CodeRabbit commits and pushes the changes, as the web app’s Commit and push action does. GitHub can first ask you to authorize CodeRabbit in a browser that is signed in to CodeRabbit. Usage: coderabbit code push [options] <task>

code autopilot

Autopilot publishes the task’s changes when the agent finishes, then fixes CodeRabbit findings, required CI, and merge conflicts. on starts it, off stops it, resume starts a new repair episode after a pause, and status shows its state. Pass exactly one target: a task ID or URL, or --pr <number|url>. on and resume check Coding Agent billing; with --pr they can create an Autopilot task for the pull request. Usage: coderabbit code autopilot [options] <action> [task]

code skills

Manage cloud Coding Agent skills Usage: coderabbit code skills [options] [command]

code skills import

Choose an agent, select local skills, and review their import into the cloud library. Pass a skill folder or SKILL.md to import one directly. With --yes and no --scope, new skills are personal within the selected organization and existing skills keep their visibility. Importing an owned skill with the same name publishes a new version. Noninteractive imports require a path and --yes. Usage: coderabbit code skills import [options] [path]

completion

Print the shell completion script for coderabbit and cr. It completes commands, options, and the task IDs that this computer listed or opened. Usage: coderabbit completion [options] <shell>
Examples
  • The script completes coderabbit and the cr alias.
  • Task IDs come from the tasks that this computer listed or opened with coderabbit code. A Tab press makes no network call.