#semver #bumpversion #bump2version

bumpversion

Update all version strings in your project and optionally commit and tag the changes

3 releases

Uses new Rust 2024

new 0.0.5 Apr 20, 2025
0.0.4 Apr 20, 2025
0.0.3 Apr 20, 2025

#1412 in Command line utilities

24 downloads per month

Custom license

335KB
7.5K SLoC

bumpversion

build status test status dependency status crates.io docs.rs

This is an improved version of the popular callowayproject/bump-my-version (formerly peritus/bumpversion and c4urself/bump2version) written in Rust.

Features

  • No more global pip installs! Easy to install via brew, cargo, or precompiled static binary.
  • Fully compatible with your existing configuration in .bumpversion.cfg, setup.cfg, or pyproject.toml
  • Also supports configuration in your Cargo.toml
  • Additional hook system

Installation

# will install `bumpversion` binary
brew install romnn/tap/bumpversion

# will install `cargo-bumpversion` binary
brew install romnn/tap/cargo-bumpversion

# or install from source (will install both `cargo-bumpversion` and `bumpversion` binaries)
cargo install bumpversion-cli

CLI usage

You can use this as a drop-in replacement for the Python bumpversion, bump2version, or bump-my-version. For usage instructions, please refer to the Python version.

Development

cargo run -- --dir ../dir/to/a/repo/with/.bumpversion.toml --verbose --dry-run patch

Dependencies

~14–27MB
~417K SLoC