Commitizen is a powerful release management tool that helps teams maintain consistent and meaningful commit messages while automating version management.
What Commitizen Does
By enforcing standardized commit conventions (defaulting to Conventional Commits), Commitizen helps teams:
Write clear, structured commit messages
Automatically manage version numbers using semantic versioning
Generate and maintain changelogs
Streamline the release process
Key Benefits
With just a simple cz bump command, Commitizen handles:
Version Management: Automatically bumps version numbers and updates version files based on your commit history
Changelog Generation: Creates and updates changelogs following the Keep a changelog format
Commit Standardization: Enforces consistent commit message formats across your team
This standardization makes your commit history more readable and meaningful, while the automation reduces manual work and potential errors in the release process.
Features
Interactive CLI for standardized commits with default Conventional Commits support
Commitizen supports command-line completion through argcomplete, which is automatically installed as a dependency. This feature provides intelligent auto-completion for all Commitizen commands and options.
Supported Shells
Bash: Full support
Zsh: Limited support
Fish: Limited support
Tcsh: Limited support
Installation Methods
Global Installation (Recommended)
If you installed Commitizen globally (e.g., using pipx or brew), you can enable global completion:
# Enable global completion for all Python applications
sudo activate-global-python-argcomplete
User-Specific Installation
For a user-specific installation that persists across sessions:
# Add to your shell's startup file (e.g., ~/.bashrc, ~/.zshrc)
register-python-argcomplete cz >> ~/.bashrc
Temporary Installation
For one-time activation in your current shell session:
# Activate completion for current session only
eval "$(register-python-argcomplete cz)"
Verification
After installation, you can verify the completion is working by:
Opening a new terminal session
Typing cz followed by a space and pressing TAB twice
You should see a list of available commands
For more detailed information about argcomplete configuration and troubleshooting, visit the argcomplete documentation.
Star History
Sponsors
These are our cool sponsors!
Alternatives
Use instead of commitizen: tools that do the same job, closest first.