Generates a changelog following the committing rules established.
When changelog generation is triggered by cz bump --allow-no-commit (with --changelog or update_changelog_on_bump = true), Commitizen still creates a release entry even when no commits are found in the selected revision range.
Tip
To create the changelog automatically on bump, add the setting update_changelog_on_bump
Changelog generation is constrained only to markdown files.
These are the variables used by the changelog generator.
Creates a full block like above per version found in the tags, and a list of the commits found. The change_type and scope are optional and don't need to be provided, but if your regex parses them, they will be rendered.
The format followed by the changelog is from keep a changelog and the following variables are expected:
| version | Version number which should follow semver | tags |
| date | Date when the tag was created | tags |
| change_type | The group where the commit belongs to, this is optional. Example: fix | commit regex |
| message | Information extracted from the commit message | commit regex |
| scope | Contextual information. Should be parsed using the regex from the message, it will be bold | commit regex |
| breaking | Whether it is a breaking change or not | commit regex |
Note
message is the only variable required to be parsed by the regex.
Provide your own changelog extra variables by using the extras settings or the --extra/-e parameter.
Specify the name of the output file. Note that changelog generation only works with Markdown files.
This value can be updated in the configuration file with the key changelog_file under tool.commitizen.
Build from the latest version found in changelog.
Benefits:
This flag can be set in the configuration file with the key changelog_incremental under tool.commitizen.
Start from a given git rev to generate the changelog. Commits before that rev will not be considered. This is especially useful for long-running projects adopting conventional commits, where old commit messages might fail to be parsed for changelog generation.
This value can be set in the configuration file with the key changelog_start_rev under tool.commitizen
Collects changes from prereleases into the next non-prerelease version. If you have a prerelease version followed by a normal release, the changelog will show the prerelease changes as part of the normal release. If not set, prereleases will be included as separate entries in the changelog.
This flag can be set in the configuration file with the key changelog_merge_prerelease under tool.commitizen
Provide your own changelog Jinja template by using the template settings or the --template parameter.
There is usually a chicken-and-egg situation when automatically bumping the version and creating the changelog:
By using --unreleased-version, you can prevent this situation.
Before bumping you can run:
Remember to use the tag format instead of the raw version number.
For example, if your tag format includes a v prefix (e.g., v1.0.0), use that format. If your tag is the same as the raw version (e.g., 1.0.0), use the raw version.
Alternatively, you can directly bump the version and create the changelog by running:
Supported hook methods:
Read more about hooks in the customization page
May 3, 2026