sr-cli-3.3.0 is not a library.
sr-cli
The CLI binary for sr — an AI-powered release engineering CLI.
Installation
From crates.io
From source
Binary download
Pre-built binaries are available on the releases page.
Quick Start
# AI-powered commits from your changes
# AI code review
# Generate a PR
# Preview the next release
# Execute the release
Commands
AI commands
| Command | Description |
|---|---|
sr commit |
Generate atomic commits from changes (AI-powered) |
sr rebase |
AI-powered interactive rebase (reword, squash, reorder) |
sr review |
AI code review of staged/branch changes |
sr explain |
Explain recent commits |
sr branch |
Suggest conventional branch name |
sr pr |
Generate PR title + body from branch commits |
sr ask |
Freeform Q&A about the repo |
sr cache |
Manage the AI commit plan cache |
Release commands
| Command | Description |
|---|---|
sr release |
Execute a release (tag + GitHub release) |
sr plan |
Show what the next release would look like |
sr changelog |
Generate or preview the changelog |
sr version |
Show the next version |
sr config |
Validate and display resolved configuration |
sr init |
Create a default sr.yaml config file |
sr completions |
Generate shell completions (bash, zsh, fish, powershell, elvish) |
Global flags
| Flag | Env var | Description |
|---|---|---|
--backend |
SR_BACKEND |
AI backend: claude, copilot, or gemini |
--model |
SR_MODEL |
AI model to use |
--budget |
SR_BUDGET |
Max budget in USD (claude only, default: 0.50) |
--debug |
SR_DEBUG |
Enable debug output |
Configuration
sr reads sr.yaml from the repository root. See the root README for full configuration documentation.
Prerequisites
git— for all repository operationsGH_TOKENorGITHUB_TOKEN— for creating GitHub releases (set automatically on GitHub Actions runners)- At least one AI backend CLI installed:
claude,gh copilot, orgemini(for AI commands)