sr-cli-1.0.0 is not a library.
sr-cli
The CLI binary for sr — a single-binary, zero-dependency semantic release tool.
Installation
From crates.io
From source
Binary download
Pre-built binaries are available on the releases page.
Quick Start
# Create a default config file
# Preview the next release
# Dry-run (no side effects)
# Execute the 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 .urmzd.sr.yml config file |
sr completions |
Generate shell completions (bash, zsh, fish, powershell, elvish) |
Common flags
| Flag | Description |
|---|---|
sr release --dry-run |
Preview without making changes |
sr plan --format json |
Machine-readable output |
sr changelog --write |
Write changelog to disk |
sr changelog --regenerate |
Rebuild entire changelog from all tags |
sr version --short |
Print only the version number |
sr config --resolved |
Show config with defaults applied |
sr init --force |
Overwrite existing config file |
Configuration
sr reads .urmzd.sr.yml from the repository root. See the root README for full configuration documentation.
Prerequisites
git— for all repository operationsgh— for creating GitHub releases (pre-installed on GitHub Actions runners)