Crate bump2version

source ·
Expand description

§⬆️ Bump2version

Bump2version is a command-line tool for managing version numbers in your projects. Easily update version strings, create commits, and manage version control tags.

§Features

  • Incremental Versioning: Bump major, minor, or patch versions with ease.
  • Configurability: Use a configuration file or command-line options to customize behavior.
  • Git Integration: Create commits and tags in your version control system.

§Quick Start

Get started with the bump2version CLI by following these simple steps:

  1. Install the bump2version tool using Cargo:
cargo install bump2version
  1. Use the following options to manage version numbers and customize the behavior:
bump2version --current-version 1.2.3 --bump patch

§Options

OptionDescription
--config-fileConfig file to read most of the variables from.
--current-versionVersion that needs to be updated.
--bumpPart of the version to be bumped (default: patch).
--parseRegex parsing the version string (default: \d+.\d+.\d+).
--serializeHow to format what is parsed back to a version (default: {major}.{minor}.{patch}).
--dry-runDon’t write any files, just pretend.
--new-versionNew version that should be in the files.
--commitCreate a commit in version control (default: true).
--tagCreate a tag in version control.
--messageCommit message (default: Bump version: {current_version} → {new_version}).
fileFiles to change.

§GitHub Repository

You can access the source code for this CLI tool on GitHub.

§Contributing

Contributions and feedback are welcome! If you’d like to contribute, report an issue, or suggest an enhancement, please engage with the project on GitHub. Your contributions help improve this CLI tool for the community.

Manage your project versions with ease! 🚀

Modules§