Commitizen: Conventional Commits, Version Bumps and Changelogs in One CLI
Create committing rules for projects :rocket: auto bump versions :arrow_up: and auto changelog generation :open_file_folder:
At a glance
- What is it?
- Commitizen is a Python release-management CLI that enforces Conventional Commits, bumps semantic versions from commit history, and writes a Keep a Changelog file. It fits teams already living in Python tooling, and it is the wrong tool if you want a release pipeline that never asks a human to write a commit message.
- Who is it for?
- Adopt Commitizen if your project is Python 3.10+ and you want commit rules, version bumps and a changelog produced from one configuration file. Do not adopt it if you need a release tool that works without Python, or if your team will not accept an interactive prompt in the commit path.
- Can I use it commercially?
- Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
- Is it still maintained?
- Yes. The repository received new commits within the last day.
- What is it written in?
- Mainly Python, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 23, 2026, and from our analysis. They are not legal advice.
Star history
- commitizen-tools/commitizen3,558 ★ · +45
| Repository | 2026-09-24 | 2026-11-23 |
|---|---|---|
| commitizen-tools/commitizen | 3.5k | 3.6k |
45 Stars in the last 60 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
The release chore Commitizen removes
The problem is not writing commits. It is that the version number, the tag and the changelog are three separate manual steps that drift apart. Someone reads the merged history, guesses whether the release is a patch or a minor, edits a version string, writes a tag, and then reconstructs a changelog from memory. Commitizen's answer is to make the commit message the input and derive the rest. The README describes the tool as enforcing standardized commit conventions, defaulting to Conventional Commits, and then using that history to manage versions and changelogs.
The intended user is a project maintainer or a small team on a repository where commits follow a rule. The README lists the audience as developers, and the package classifiers mark it Production/Stable and Operating System Independent. Nothing about the design assumes a monorepo, a CI provider or a particular hosting service, which is why it shows up in projects that only ever wanted the bump step. If your history is a stream of "fix stuff" and "wip" messages, Commitizen has nothing to parse, and the version decision falls back to you.
How commit messages become a version number
The mechanism is a chain: an interactive prompt produces a Conventional Commits message, the message carries a type, and the type maps to a Semantic Versioning increment. The README states that cz bump bumps the project version, creates a git tag, updates the changelog when update_changelog_on_bump is enabled, and updates version files. So the commit history is the source of truth and the version file is a derived artifact, not the other way round.
Two pieces of configuration decide what happens. The version scheme controls how the increment is calculated, and the version provider controls where the current version is read from. The README links both under the bump command documentation. The changelog side follows the Keep a Changelog format, which is a plain Markdown structure rather than a generated HTML page. Templates are customizable, and the README notes custom rules and plugins can be installed via pip, so the type-to-increment mapping is not fixed in code.
There is a real cost hidden in that design. Because the bump reads commit history, the accuracy of your release depends on the discipline of everyone who merged. A squash merge that flattens a feature branch into one badly typed message can turn a minor release into a patch. Commitizen validates messages at the hook stage, which catches this before it lands, but only if the hook is installed on every machine that commits.
Installing Commitizen and making a first commit
The README recommends a global install through pipx or uv so the CLI is isolated from project dependencies. Python 3.10+ and Git 1.8.5.2+ are the stated requirements. The pipx path is two commands: install, then upgrade when you want a newer release.
pipx install commitizen
pipx upgrade commitizenIf you prefer uv, the equivalent pair is uv tool install commitizen and uv tool upgrade commitizen. macOS users can use brew install commitizen instead. For a project-local dependency, the README gives pip install -U commitizen, conda install -c conda-forge commitizen, poetry add commitizen --group dev, uv add --dev commitizen and pdm add -d commitizen. Pick the one that matches how the project already manages dependencies.
Inside the repository, the first step is cz init. The README says this guides you through creating a configuration file with your preferred settings. After that, commits go through the interactive prompt:
cz commit
# or use the shortcut
cz cYou should see a series of prompts asking for the commit type and the message fields, and the result is a Conventional Commits message. To sign off, the README shows cz commit -- --signoff, or the short form cz commit -- -s. The double dash matters: everything after it is passed through to git rather than parsed by Commitizen.
The release step is one command:
cz bumpDepending on configuration this bumps the version, creates a tag, updates the changelog and rewrites version files. To check the version Commitizen reads for the project rather than its own, the README gives cz version -p, and to preview changelog output without writing it, cz changelog --dry-run "$(cz version -p)". That dry run is useful for a release notification script, since the README suggests using its output to tell a team about a new release in Slack.
Enforcing the format with prek and pre-commit
Validation is the part that keeps the version math honest, and it runs through pre-commit style hooks. The README shows a .pre-commit-config.yaml entry pointing at the Commitizen repository with two hook ids, commitizen and commitizen-branch, the second staged at pre-push. The rev field must be replaced with a real tag; the README warns that leaving master there produces warnings, and gives prek autoupdate as the way to move it forward.
---
repos:
- repo: https://github.com/commitizen-tools/commitizen
rev: master # Replace with latest tag
hooks:
- id: commitizen
- id: commitizen-branch
stages: [pre-push]The hook installation command in the README is prek install --hook-type commit-msg --hook-type pre-push. The two hook types line up with the two ids: commitizen checks the message being written, and commitizen-branch checks the branch at push time. Note the split. Message validation is local and cheap; branch validation happens later and can still fail after you have committed, which is the point. If your team uses pre-commit rather than prek, the repository ships a .pre-commit-hooks.yaml at the top level, and .pre-commit-config.yaml is present in the project itself, so the hook definitions are in the repository rather than only in the docs.
Where Commitizen gets in the way
The interactive prompt is the main friction. Every commit becomes a question-and-answer session unless the author bypasses it, and a bypassed commit is an unvalidated one. On a repository with many contributors, that is a training problem that never fully closes.
The second limitation is the Python requirement. The README states Python 3.10+ and Git 1.8.5.2+, and pyproject.toml sets requires-python to ">=3.10,<4.0". If your CI image, your release runner or your contributors' machines do not have a suitable Python, the tool is not available to you, and there is no documented language-agnostic build. The dependency list is not tiny either: questionary, prompt_toolkit, decli, colorama, termcolor, packaging, tomlkit, jinja2, pyyaml, argcomplete, charset-normalizer and deprecated all come along. Installing it globally through pipx keeps those out of your project environment, which is exactly why the README calls that the recommended path.
Third, the changelog is only as good as the commit subjects. Commitizen can group and template entries, but it does not read diffs and it does not summarize. If your commit subjects are terse, the generated changelog will be terse in the same way. The README does not document rollback of a bump, so if cz bump writes a version file and creates a tag you did not want, undoing it is a git operation you perform yourself.
Commitizen compared with commitlint and semantic-release
The closest alternative in the search data is commitlint, and the difference is scope. Commitlint is a linter for commit messages: it checks a message against a rule set and exits non-zero. Commitizen does that too, through the commitizen hook, but it also owns the version bump and the changelog. If you already have a release process and only need message validation, commitlint is the smaller tool and does not ask you to install a Python runtime. If you want one configuration to cover the message, the version and the changelog, Commitizen covers more ground.
Against semantic-release and python-semantic-release, the split is automation versus control. Those tools are built to run in CI and publish releases without a human in the loop, deriving everything from the commit history at pipeline time. Commitizen is a CLI you run, with an interactive commit path and a bump command you invoke when you decide to release. It fits a maintainer who wants the release to be a deliberate act. It fits worse if your goal is that every merge to the main branch produces a release with no intervention.
Release-please takes a third position: it opens a pull request that proposes the version and changelog changes, so the release is reviewed like code. Commitizen writes those changes directly with cz bump. The trade-off is reviewability versus immediacy. If your team wants a human to approve the changelog before it is published, the pull-request model is a better fit than a local command.
Licence, maintenance and the upgrade path
Commitizen is MIT licensed, and pyproject.toml declares license = "MIT" with license-files = ["LICENSE"]. MIT is permissive: you can use it in commercial and closed-source projects, and the obligation is essentially to keep the copyright and licence notice with copies of the software. That is a general description of the licence text, not legal advice for your situation.
The repository is not archived, and the last push was on 2026-09-22, with v4.19.0 released the same day. Releases are frequent: v4.17.1 on 2026-08-17, v4.18.0 on 2026-08-19, v4.19.0 on 2026-09-22. Frequent releases mean the upgrade path is real work rather than a theoretical concern. If you pin the pre-commit rev to a tag, you will be bumping that pin regularly, and prek autoupdate is the mechanism the README gives for doing it. The dependency pin prompt_toolkit!=3.0.52 exists because of a known upstream issue, so a general-purpose dependency upgrade can reintroduce a problem that the project has already excluded. Read the release notes before moving the pin.
Editorial conclusion
Adopt Commitizen if your project is Python 3.10+ and you want commit rules, version bumps and a changelog produced from one configuration file. Do not adopt it if you need a release tool that works without Python, or if your team will not accept an interactive prompt in the commit path. Before rolling it out, run cz init on a branch and check two things: where the version is read from, and whether update_changelog_on_bump is set, because cz bump will tag and write files based on those settings.
Frequently asked questions
What is Commitizen used for?
Commitizen enforces standardized commit messages, defaulting to Conventional Commits, and uses that history to bump semantic versions and generate a Keep a Changelog file. The README frames the release step as a single cz bump command that also creates a git tag and updates version files.
How do I install Commitizen?
The README recommends a global install with pipx install commitizen or uv tool install commitizen, both of which keep it isolated from project dependencies. Project-local options include pip install -U commitizen, conda install -c conda-forge commitizen, poetry add commitizen --group dev, uv add --dev commitizen and pdm add -d commitizen. Python 3.10+ and Git 1.8.5.2+ are required.
How do I use Commitizen on a project?
Run cz init to create a configuration file, then make commits with cz commit or the shortcut cz c, which prompts for the commit type and message fields. When you are ready to release, cz bump bumps the version, creates a tag and updates the changelog and version files according to your configuration.
What are the different commit types in Commitizen?
Commitizen defaults to the Conventional Commits specification, and the README states that commit rules and templates are customizable. The repository's configuration file and documentation site are where the specific type list for a project lives, rather than a fixed set baked into the tool.
What are the key differences between Commitizen and Commitlint?
Commitlint checks a commit message against a rule set and exits non-zero; it does not manage versions or changelogs. Commitizen validates messages through its commitizen hook as well, but also performs the version bump and changelog generation, at the cost of requiring a Python 3.10+ runtime.
How does Commitizen compare with semantic-release?
Semantic-release style tools are built to run in CI and publish releases automatically from commit history. Commitizen is a CLI you invoke: the commit path is interactive and cz bump is a command you run when you decide to release, which suits a maintainer who wants the release to be a deliberate step.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/commitizen-tools-commitizen)Star history chart for your README
[](https://hysenlabs.com/projects/commitizen-tools-commitizen)Was this useful?