Install via PyPI
Install git-cliff from PyPI using pip.Quick Install
Installation Steps
Install git-cliff
- System-wide
- Virtual Environment
- User Install
- pipx
Install globally:Or with Python 3:
Using in Python Projects
Add to requirements.txt
requirements.txt
Add to pyproject.toml
pyproject.toml
Add to setup.py
setup.py
Integration Examples
- Python Script
- Release Script
- Pre-commit Hook
Call git-cliff from Python:Usage:
generate_changelog.py
Upgrading
Upgrade to the latest version:Uninstalling
Remove git-cliff:Troubleshooting
pip: command not found
pip: command not found
Install pip:Linux (Debian/Ubuntu):Linux (Fedora):macOS:
git-cliff: command not found after installation
git-cliff: command not found after installation
The installation directory may not be in your PATH.Check installation location:Add to PATH (Linux/macOS):Add to PATH (Windows):
Add
%USERPROFILE%\AppData\Local\Programs\Python\Python3x\Scripts to your PATH environment variable.Permission denied errors
Permission denied errors
If you get permission errors during installation:
-
Use
--userflag: -
Or use a virtual environment:
-
Avoid using
sudo pip installas it can cause issues.
Conflicts with other packages
Conflicts with other packages
Use pipx for isolated installation:Or use a virtual environment for your project.
SSL certificate verification failed
SSL certificate verification failed
If you encounter SSL errors:Better solution: Update your CA certificates:
Next Steps
Configuration
Configure git-cliff for your project
Usage Examples
Learn how to use git-cliff