Version: v0.2.0
Are you tired of manually updating version numbers in your project? Sick of forgetting to tag releases in Git? Say no more—Version-Bump is here to save your day (and your sanity). This tool is slick, funny, and as gritty as your late-night coding sessions.
Version-Bump is a no-nonsense, straight-to-the-point tool for managing semantic versioning in your projects. Whether you’ve got a Python project, a Node.js app, or a README.md crying for a new version tag, this bad boy’s got you covered.
You:
- 🔢 Increment versions (major, minor, patch) with a single command.
- 🎉 Automatically update
pyproject.toml,package.json, andREADME.md. - 💅 Tag your Git repo like a pro (no more "Oops, forgot the tag" situations).
- 🤯 Feel like a rockstar with every bump.
- One-liner Bumps:
version-bump --patchto go from 1.0.0 to 1.0.1. Done. - Interactive Mode: Want to choose the next version manually? We got you.
- Git Integration: Updates and commits only the files you actually changed.
- Flexible: Works even if you don’t have
pyproject.tomlorpackage.json. It just updates what’s there. - Force Mode: Skip the confirmation and live on the edge with
--force.
- Clone this repo:
git clone https://github.com/scharc/version-bump.git cd version-bump - Install dependencies:
poetry install
- Run it within the Poetry environment:
poetry run version-bump --help
- Optionally, add the tool to your PATH by creating a symbolic link:
ln -s $(poetry run which version-bump) ~/.local/bin/version-bump
Run it from anywhere in your repo and watch the magic happen:
# Show current version and get prompted for the next patch version:
version-bump
# Increment the patch version (e.g., 1.0.0 -> 1.0.1):
version-bump --patch
# Increment the minor version (e.g., 1.0.0 -> 1.1.0):
version-bump --minor
# Increment the major version (e.g., 1.0.0 -> 2.0.0):
version-bump --major
# Set a specific version:
version-bump --bump 2.3.4
# Skip all confirmations and live dangerously:
version-bump --patch --force- Finds your current version in
pyproject.toml,package.json, or both. - Updates the version to your liking.
- Updates version tags in your
README.md(because documentation matters!). - Commits only the files it changed.
- Tags the commit in Git with the new version.
- Pushes everything to your repo (you’re welcome).
- Your coworkers will think you’re a versioning wizard. 🧙
- It saves you from the pain of manual edits.
- Automated Git tags? Hell yeah.
We’re not picky, but we’re picky:
- Fork this repo.
- Make your changes.
- Open a pull request.
- Add a meme to your PR description (optional, but highly encouraged).
GPL-3.0. Because freedom matters.
Bump your version. Save your soul. 🖖