Version bumping tool for Rust projects. Use when incrementing versions, creating git tags, or releasing new versions.
bumpUse bump to increment versions, commit changes, and create git tags in one step.
bump handles three scenarios:
# 1. Make your code changes (leave them unstaged)
# 2. Run bump
bump
# 3. Push commit and tags:
git push && git push --tags
# Agent commits changes
git add .
git commit -m "Implement feature X"
# Run bump - amends commit and tags (if unpushed)
bump -a
# Output: Amended commit and tagged v0.1.6
git push && git push --tags
bump # Patch bump (x.y.Z) - DEFAULT
bump -m # Minor bump (x.Y.0)
bump -M # Major bump (X.0.0)
bump -n # Dry run - preview without applying
bump -a # Automatic commit message
bump --message "X" # Custom commit message
| Flag | Behavior |
|---|---|
--message "msg" | Use provided message |
-a / --automatic | Generate "Bump version to vX.Y.Z" |
| (neither) | Auto-generate for version-only changes, or open editor |
When you have changes beyond Cargo.toml, bump opens your editor ($VISUAL → $EDITOR → vim) with a template showing staged files.
For Rust projects using the /rust-cli-coder conventions, the version set by bump is picked up by build.rs and exposed via the GIT_DESCRIBE environment variable, which clap uses for --version output.
bumpbump creates annotated tagsgit push --tags after bump