bumpversion

Automatically increment version numbers following semantic versioning

brewmacoslinux
Try with needOr install directly
Source

About

Increase version numbers with SemVer terms

Commands

bumpversion

Examples

Bump the patch version (e.g., 1.0.0 → 1.0.1)$ bumpversion patch
Bump the minor version (e.g., 1.0.0 → 1.1.0)$ bumpversion minor
Bump the major version (e.g., 1.0.0 → 2.0.0)$ bumpversion major