@codereviewr/cli
v0.1.0
Published
CLI tool for CodeReviewr - AI-powered code reviews
Maintainers
Readme
@codereviewr/cli
AI-powered code review from your terminal.
Installation
npm install -g @codereviewr/cliQuick Start
- Get your API token from the CodeReviewr dashboard
- Configure the CLI:
codereviewr auth login cr_your_token_here- Review your changes:
codereviewr reviewGlobal Options
# Enable verbose debug logging for any command
codereviewr --verbose <command>
codereviewr -v <command>Commands
codereviewr review
Review uncommitted changes in your repository.
# Review all uncommitted changes
codereviewr review
# Review changes compared to a specific ref
codereviewr review --ref main
# Verbose output (shows detailed debug information)
codereviewr review --verbose
# or
codereviewr --verbose reviewOptions:
-r, --ref <ref>- Compare against a specific git ref (commit, branch, tag)--staged- Only review staged changes-v, --verbose- Show verbose debug output with detailed logging--max-iterations <number>- Maximum number of review iterations (default: 25)
Exit codes:
0- No critical or high issues found1- High severity issues found2- Critical severity issues found
codereviewr auth
Manage authentication and configuration.
# Set your API token
codereviewr auth login <token>
# Check authentication status
codereviewr auth status
# Remove your API token
codereviewr auth logout
# Set custom API URL (development)
codereviewr auth set-url http://localhost:5174
# Set maximum review iterations (default: 25)
codereviewr auth set-max-iterations 50Configuration
Configuration is stored in ~/.codereviewr/config.json.
Development
# Build
npm run build
# Watch mode
npm run dev
# Type check
npm run typecheck