Automated version management and Git operations for Node.js and PHP projects.
Note: tagit is intended for use on Linux systems only.
tagit is a CLI utility that automates the process of incrementing your project version, updating version files (package.json and/or composer.json), committing the changes, tagging the commit, and pushing to your Git repository. It provides detailed logging and robust error handling for a smooth release workflow.
- Increments the semantic version in
package.jsonand/orcomposer.json - Writes the new version back to the file(s)
- Commits all changes with a message like:
Version <version> - MM-DD-YYYY - Tags the commit with the new version
- Pushes commits and tags to your remote repository
- Logs each step for transparency
Clone the repository (suggested location: /opt):
sudo git clone https://github.com/eliware/tagit.git /opt/tagit
cd /opt/tagit
sudo npm install
# (Optional) Run tests
sudo npm testCreate a symlink to make tagit available system-wide:
sudo ln -s /opt/tagit/tagit.mjs /usr/bin/tagitSwitch to the root directory of the project you want to bump the version for, then run:
tagitIf you have not created the symlink, you can run it directly with:
/opt/tagit/tagit.mjsFor help or questions, join the community and chat with the author:

