CodeJackRabbit

CodeJackRabbit CLI reference

Command names: codejackrabbit and cjr. Install CodeJackRabbit from the installation page, then run cjr <command>.

Host and key resolution order: flags, CODEJACKRABBIT_HOST_URL or CODEJACKRABBIT_API_KEY, stored login, then https://api.codejackrabbit.com. With no key and no explicit host, review stays local automatically.

Interactive terminal

On a real terminal the CLI uses its signed presentation: an amber CJR banner, findings grouped by severity with colored badges, a progress spinner on stderr during reviews and browser login, and status glyphs in doctor. Missing input is asked for interactively: code new prompts for the task (or read it from stdin with prompt -), and code ask <task> prompts for the question.

Presentation never changes the contract. Colors and the spinner turn off automatically when output is piped, in CI, in --agent mode, or when NO_COLOR is set; FORCE_COLOR=1 forces colors on. Piped output stays plain text, and --agent NDJSON is byte-for-byte the same in every environment. Prompts only appear when stdin is a terminal; scripts keep the non-interactive usage errors.

auth

codejackrabbit auth signup --email <email> [--name <name>] [--org <organization>] [--host-url <url>] [--agent]
codejackrabbit auth login [--api-key-stdin | --api-key <key>] [--host-url <url>] [--region us|eu]
                          [--self-hosted] [--no-browser] [--agent]
codejackrabbit auth logout [--agent]
codejackrabbit auth status [--agent]
codejackrabbit auth org [organization] [--agent]

auth login reads an API key from CODEJACKRABBIT_API_KEY or, with --api-key-stdin, from standard input (for example printf %s "$KEY" | cjr auth login --api-key-stdin). --api-key <key> still works but leaves the key in the process list and shell history. Without a key, login opens the browser sign-in. The stored credentials file is readable by your user only.

auth signup starts account creation for the configured service. If the service uses centralized sign-in, the CLI opens that flow. Otherwise, it creates the account and stores the CLI connection key like a login. Browser signup is also available at /signup on the service host.

Without an API key, login starts a browser sign-in flow against the configured service.

For a service with centralized sign-in, cjr auth login displays a device confirmation code and opens the account approval page. Confirm the code and organization in your browser. The CLI renews its short-lived product session as needed; auth status checks access with the service rather than relying only on a saved file. auth logout clears local credentials and requests remote device revocation. If the service is unreachable, it reports that remote revocation could not be confirmed; you can revoke the device from your account security settings.

Managed CLI access currently supports reviews of connected repositories, review prompts and threads, usage, and reading existing tasks and plans. Cloud task creation, editing, execution and delivery require the separate managed authorization integration and return an explicit unavailable message through this CLI. Use the web workspace for its supported actions. Local review and local planning remain available. An older deployment without device support reports an activation requirement immediately.

review

codejackrabbit review [--local] [--deep [focus]] [--light] [--fresh]
  [--committed|--uncommitted] [--include-untracked]
  [--base <branch>|--base-commit <sha>] [--dir <path>]
  [--config-ref <ref>]
  [--changelist <id>] [--remote owner/repo --source-branch <branch>]
  [--type all|committed|uncommitted] [--config <file>]
  [--agent] [--show-prompts] [--fail-on minor|major|critical]
  [--api-key <key>] [--host-url <url>] [--region us|eu] [--use-credits]
codejackrabbit review findings [--clear]

Exit code 1 means the review failed or the configured severity gate tripped. Findings alone do not fail when the gate is none. --agent emits NDJSON events. A repeated unchanged review may reuse the previous result; --fresh forces a new review. --dir <path> narrows the review to a directory inside the current Git repository. It accepts an absolute path or a path relative to the current working directory; a path outside that repository is rejected. --config-ref <ref> reads .codejackrabbit.yaml from that Git ref (the GitHub Action passes the pull request base) instead of the working tree, so a pull request cannot reconfigure its own review.

Pull request helpers

codejackrabbit pullrequest <number|url> --show-prompts [--agent]
codejackrabbit pullrequest <number|url> --show-threads [--agent]

config

codejackrabbit config [--generate|--detailed] [--profile quiet|chill|assertive|default]
codejackrabbit config validate [file] [--json]
codejackrabbit config inspect [--agent]
codejackrabbit config apply <proposal> --base <sha256|none> [--dry-run] [--yes]
codejackrabbit config --agent [--profile <profile>]

Apply merges a validated proposal but refuses when the current file hash no longer equals --base.

doctor, stats and usage

doctor checks Node, Git, configuration, login, server health and installed external tools. stats --rebuild rescans local history. usage reports the server counters for the active key and organization.

learnings and generators

codejackrabbit learnings list
codejackrabbit learnings add [--suppress <rule>] [--path <glob>] [instruction...]
codejackrabbit learnings delete <id>
codejackrabbit generate docstrings|unit-tests|sequence-diagram|vocabulary

code: cloud coding tasks

codejackrabbit code ls [--status <state>] [--repo owner/name] [--all] [--agent]
codejackrabbit code new [prompt...] [--plan] [--resume] [--agent]
codejackrabbit handoff --summary <path|-> [--plan <file>] [--resume] [--agent]
codejackrabbit code show <task> [--agent]
codejackrabbit code resume [task] [--last] [--message <text|->] [--steer <text>]
                            [--answer <text|->] [--agent]
codejackrabbit code ask <task> <question...> [--follow-up <turn>] [--agent]
codejackrabbit code plan <task> [--approve] [--agent]
codejackrabbit code implement <task> [--agent]
codejackrabbit code apply <task> [--agent]
codejackrabbit code cancel <task> [--agent]
codejackrabbit code push <task> [--stacked] [--agent]
codejackrabbit code autopilot on|off|resume|status (<task>|--pr <number|url>) [--agent]
codejackrabbit code skills import [path] [--scope personal|organization] [--yes]

Plan approval uses the current plan version and SHA-256. A plan author cannot approve their own plan unless the task setting allows it, but may implement it directly.

skills, update and completion

codejackrabbit skills [--agent]
codejackrabbit skills --confirm <plan-hash>
codejackrabbit update [--check]
codejackrabbit completion powershell|bash|zsh
codejackrabbit complete [<prefix>]
codejackrabbit --version

update checks for a newer release and prints the npm reinstall command for installed packages.