Linux command
coderabbit 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Review
coderabbit
Review
coderabbit --plain
Review
coderabbit --type uncommitted
Compare
coderabbit --base [develop]
Provide
coderabbit --config [./claude.md]
Authenticate
cr auth login
Update
coderabbit update
说明
CodeRabbit CLI brings AI-powered code reviews directly into the terminal. It analyzes code changes -- whether uncommitted, staged, committed, or across branches -- and provides line-by-line review comments identifying potential issues such as security vulnerabilities, performance problems, code smells, logical errors, and missed unit tests. cr is a short alias for coderabbit. The tool operates in three output modes: interactive mode (default) with a browsable TUI, plain text mode (--plain) with detailed feedback for scripting, and prompt-only mode (--prompt-only) for integration with AI coding agents.
参数
- --plain
- Output detailed feedback in plain text format.
- --prompt-only
- Show minimal output optimized for AI agents.
- -t, --type _type_
- Review type: all, committed, uncommitted (default: all).
- -c, --config _files..._
- Additional instruction files for the AI.
- --base _branch_
- Base branch for comparison.
- --base-commit _commit_
- Base commit hash on the current branch for comparison.
- --cwd _path_
- Set working directory (must contain a Git repository).
- --api-key _key_
- API key for usage-based access.
- --self-hosted
- Enable self-hosted authentication mode.
- --no-color
- Disable colored terminal output.
FAQ
What is the coderabbit command used for?
CodeRabbit CLI brings AI-powered code reviews directly into the terminal. It analyzes code changes -- whether uncommitted, staged, committed, or across branches -- and provides line-by-line review comments identifying potential issues such as security vulnerabilities, performance problems, code smells, logical errors, and missed unit tests. cr is a short alias for coderabbit. The tool operates in three output modes: interactive mode (default) with a browsable TUI, plain text mode (--plain) with detailed feedback for scripting, and prompt-only mode (--prompt-only) for integration with AI coding agents.
How do I run a basic coderabbit example?
Run `coderabbit` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --plain do in coderabbit?
Output detailed feedback in plain text format.