# BumpIt
[<img alt="github" src="https://img.shields.io/badge/github-caido/bumpit-8da0cb?style=for-the-badge&labelColor=555555&logo=github" height="20">](https://github.com/caido/bumpit)
[<img alt="crates.io" src="https://img.shields.io/crates/v/bumpit?color=fc8d62&logo=rust&style=for-the-badge" height="20">](https://crates.io/crates/bumpit)
Mirrors the behaviour of [npm version](https://docs.npmjs.com/cli/v8/commands/npm-version) but for Rust.
Supports individual packages and workspaces.
## Installation
We provide both a cargo command and a standalone binary.
```sh
cargo install bumpit
```
## Usage
### Bump a level
```sh
# 0.1.0 -> 0.2.0
# 0.1.0-rc.0 -> 0.1.0
cargo bumpit minor
```
### Bump and pre-release
```sh
# 0.1.0 -> 0.2.0-0
cargo bumpit preminor
```
### Bump pre-release
```sh
# 0.1.0-0 -> 0.1.0-1
# 0.1.0 -> 0.1.1-0
cargo bumpit prerelease --pre-id rc
```
### Pre-release with ID
```sh
# 0.1.0 -> 0.2.0-rc.0
cargo bumpit preminor --pre-id rc
```