Get started in three steps
1
Install the CLI
Install the Rafter security CLI using your preferred package manager.Verify the install worked:
Python 3.10+ required for pip installs. Verify your version:On Ubuntu/Debian, Python and pip may not be installed by default:On Fedora/RHEL:
sudo dnf install python3 python3-pip.
macOS: brew install python. Windows: install from python.org — pip is included.2
Get your API key
Sign up and grab your API key from your account page.
3
Start your first scan
Navigate to a Git repository, then run:Or set the key as an environment variable and skip the flag:The CLI auto-detects your repository and branch from Git, then displays scan results in your terminal.
Local Security (No Account Required)
Rafter’s local features work with zero setup — no API key, no sign-up:Hand Rafter to Your Coding Agent
The whole point of Rafter is that your agent should be the one reaching for it — during design, while writing code, when reviewing diffs, before finalizing changes. Paste this prompt into Claude Code, Cursor, Codex, Windsurf, Aider, or any other agent so security becomes part of its loop instead of an afterthought:What’s happening?
When you runrafter run, the CLI will:
- Auto-detect your repository and branch from Git
- Upload your code securely to Rafter’s scanning engine from Github
- Scan for vulnerabilities, secrets, and security issues
- Delete your code from Rafter’s scanning engine
- Display results directly in your terminal
The CLI only scans remote repositories, not your current local branch. Make sure your changes are pushed to the remote repository before scanning.
Bonus: Saving Results to a File
To run a scan and save the results to a file, you can use the following command:Next Steps
CLI Basics
Learn the fundamentals of using the Rafter CLI.
Advanced CLI
Master advanced CLI features and automation.
API Reference
Build custom integrations with the REST API.
CI/CD Integration
Set up automated scanning in your pipelines.

