#semver #cli #version #bump

app bump-bin

Increments version with semver specification

4 releases

0.3.4 Jun 13, 2021
0.3.3 Apr 26, 2020
0.3.2 Apr 25, 2020
0.3.1 Jul 23, 2019

#321 in Command line utilities

Download history 1/week @ 2022-03-07 15/week @ 2022-03-14 12/week @ 2022-03-21 2/week @ 2022-04-04 3/week @ 2022-04-11 11/week @ 2022-04-25 29/week @ 2022-05-02 7/week @ 2022-05-09 68/week @ 2022-05-16 26/week @ 2022-05-23 34/week @ 2022-05-30 22/week @ 2022-06-06 1/week @ 2022-06-13 4/week @ 2022-06-20

73 downloads per month

MIT/Apache

31KB
801 lines

bump

bump is a simple tool to increment semver-like versions.

test codecov Latest version Documentation Docker License

Getting Started

  • Bump patch version
❯❯ bump patch 1.0.0
1.0.1
  • Bump minor version
❯❯ bump minor 1.0.0
1.1.0
  • Bump major version
❯❯ bump major 1.0.0
2.0.0
  • Replace pre release version
❯❯ bump pre beta.0 1.0.0-alpha.0
1.0.0-beta.0
  • Replace build release version
❯❯ bump build 20190720CCDD 1.0.0+20190720AABB
1.0.0+20190720CCDD
  • If semver has the version prefix char, bump ignore the prefix.
❯❯ bump patch v1.0.0
v1.0.1

❯❯ bump patch release-1.0.1
release-1.0.1
  • Can specify file
❯❯ echo 1.0.0 > version.txt
❯❯ bump patch -f version.txt
1.0.1
  • Can read from pipeline
❯❯ echo 1.0.0 | bump patch
1.0.1
  • Other usage
USAGE:
    bump <SUBCOMMAND>

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

SUBCOMMANDS:
    build    Replace build metadata
    help     Prints this message or the help of the given subcommand(s)
    major    Increment major version
    minor    Increment minor version
    patch    Increment patch version
    pre      Replace pre-release version

Installing

  • Install binary directly
❯❯ curl --tlsv1.2 -sSf https://raw.githubusercontent.com/watawuwu/bump/master/install.sh | sh
  • Compile and install
❯❯ git clone https://github.com/watawuwu/bump.git && cd bump

❯❯ make install
  • Install with cargo
❯❯ cargo install bump-bin

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning.

License

This project is licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Authors

Dependencies

~3–4.5MB
~92K SLoC