# 使用 Homebrew, MacPorts, Nix, winget 安装 commitizen

查看 commitizen 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:commitizen
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install commitizen
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install commitizen
```

  证据: MacPorts ports tree: devel/commitizen/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#commitizen
```

  证据: nixpkgs package indexes: pkgs/by-name/co/commitizen/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

### Windows

- winget (92%):

```sh
winget install --id shipengqi.commitizen -e
```

  证据: Windows Package Manager source index: shipengqi.commitizen from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:commitizen
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/commitizen>
- **版本:** 4.17.0
- **来源摘要:** Defines a standard way of committing rules and communicating it
- **主页:** <https://commitizen-tools.github.io/commitizen/>
- **仓库:** <https://github.com/commitizen-tools/commitizen>
- **上游文档:** <https://commitizen-tools.github.io/commitizen/>
- **许可证:** MIT
- **源码归档:** <https://files.pythonhosted.org/packages/87/af/510e0659cf66dadddd769c1c955dc0b28a4685dd69bfd34e6e6ee35c7c41/commitizen-4.17.0.tar.gz>
- **最后更新:** 2026-07-30T12:27:23Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- cz (cli)
- git-cz (cli)
- cz (别名)
- git-cz (别名)

## 依赖

- libyaml
- python@3.14

## 构建依赖

- maturin
- rust

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 4.17.0
- 管理器更新时间: 2026-07-30
- 本地数据: OK
- 上游仓库: https://commitizen-tools.github.io/commitizen/
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

Commitizen is a Python CLI for standardized Git commits and release automation. Its official documentation presents it as a tool for Conventional Commits, semantic version bumping, and changelog generation.

### 项目历史

The project grew around the idea that commit-message conventions can drive release work: the CLI guides commit creation, validates commit messages, calculates version bumps from commit history, and can update changelogs. The public Python package history on PyPI dates back to 2017, placing this implementation in the wave of Conventional Commits tooling that moved commit metadata into everyday release automation.

### 采用历史

Commitizen is distributed as a Python package and documented for installation through pipx, uv, pip, conda, Poetry, pdm, and Homebrew. That spread is notable because the tool is not only a Python-project helper; it is commonly installed as a developer workstation CLI for projects in any language that want commit and release rules.

### 使用方式

Typical usage centers on `cz commit` for guided commits, commit-message validation through pre-commit-style hooks, and `cz bump` for version and changelog updates. Its package-manager value comes from making release conventions executable rather than leaving them as prose in CONTRIBUTING files.

### 为什么软件包爱好者会关心

Commitizen sits at the intersection of source-control hygiene and package release mechanics. For package maintainers, it is significant because the same commit taxonomy can feed semantic versioning, changelog text, tags, and CI release steps.

### 时间线

- 2017: PyPI records public Commitizen releases.
- 2020s: Official documentation emphasizes Conventional Commits, semantic versioning, changelog generation, and pre-commit integration.
- 2026: PyPI continues to publish 4.x releases.

### Related projects

- Commitizen is closely related to Conventional Commits, Semantic Versioning, Keep a Changelog, and pre-commit-style Git hook workflows.

### 来源

- <https://commitizen-tools.github.io/commitizen/>
- <https://github.com/commitizen-tools/commitizen>
- <https://raw.githubusercontent.com/commitizen-tools/commitizen/master/docs/README.md>
- <https://pypi.org/pypi/commitizen/json>


## 安全说明

没有找到 commitizen 的匹配本地密钥处理 manifest。软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ./.cz.toml, ./cz.toml, ./.cz.json, ./cz.json, ./.cz.yaml, ./cz.yaml, ./pyproject.toml
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** commitizen
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## 其他软件包管理器记录

- Nix - commitizen: normalized package name match | nixpkgs package indexes: pkgs/by-name/co/commitizen/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - commitizen: normalized package name match | MacPorts ports tree: devel/commitizen/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- winget - shipengqi.commitizen: normalized package name match | Windows Package Manager source index: shipengqi.commitizen from https://cdn.winget.microsoft.com/cache/source.msix


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [python@3.14](https://pkg.so/zh-hans/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [rust](https://pkg.so/zh-hans/brew/rust/) - Build dependency declared by Homebrew.
- [maturin](https://pkg.so/zh-hans/brew/maturin/) - Build dependency declared by Homebrew.
- [commitlint](https://pkg.so/zh-hans/brew/commitlint/) - Shares pkgdb curated category or tags: cli, conventional-commits, developer-tools, git, version-control.
- [czg](https://pkg.so/zh-hans/brew/czg/) - Shares pkgdb curated category or tags: cli, conventional-commits, developer-tools, git, version-control.
- [convco](https://pkg.so/zh-hans/brew/convco/) - Shares pkgdb curated category or tags: changelog, cli, conventional-commits, developer-tools, release-management.
- [koji](https://pkg.so/zh-hans/brew/koji/) - Shares pkgdb curated category or tags: cli, commits, conventional-commits, developer-tools, git.
- [lucky-commit](https://pkg.so/zh-hans/brew/lucky-commit/) - Shares pkgdb curated category or tags: cli, commits, developer-tools, git, version-control.
- [libgit2](https://pkg.so/zh-hans/brew/libgit2/) - Shares pkgdb curated category or tags: cli, developer-tools, git, version-control.
- [lazygit](https://pkg.so/zh-hans/brew/lazygit/) - Shares pkgdb curated category or tags: cli, developer-tools, git, version-control.
- [lefthook](https://pkg.so/zh-hans/brew/lefthook/) - Shares pkgdb curated category or tags: cli, developer-tools, git, version-control.
- [commitizen](https://pkg.so/zh-hans/npm/commitizen/) - Same normalized package name appears in another local ecosystem. Shared terms: changelog, cli, commitizen, control, conventional.
- [git-cz](https://pkg.so/zh-hans/npm/git-cz/) - Executable or command metadata overlaps with this package. Shared terms: cli, control, developer, developer-tools, git.
- [commitizen](https://pkg.so/zh-hans/npm/commitizen/) - Same normalized package name in another local ecosystem.

## Combined YAML source

View the package source record on GitHub. [combined/commitizen.yml](https://github.com/mxcl/pkgdb/blob/main/combined/commitizen.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
