The commit command provides an interactive way to create structured commits. Use either:
By default, Commitizen uses conventional commits, but you can customize the commit rules to match your project's needs. See the customization guide for details.
Simply run cz commit in your terminal to start the interactive commit creation process. The command will guide you through creating a properly formatted commit message according to your configured rules.
You can save the generated commit message to a file using:
This can be combined with --dry-run to only write the message without creating a commit. This is particularly useful for automatically preparing commit messages.
You can pass any git commit options using the -- syntax:
Warning
The --signoff option (or -s) is now recommended being used with the new syntax: cz commit -- -s. The old syntax cz commit --signoff is deprecated and will be removed in v5.
Control the length of your commit messages using the -l or --message-length-limit option:
Note
The length limit only applies to the first line of the commit message. For conventional commits, this means the limit applies from the type of change through the subject. The body and footer are not counted.
For platform compatibility, the commit command disables ANSI escaping in its output. This means pre-commit hooks coloring will be deactivated as discussed in commitizen-tools/commitizen#417.
February 14, 2026