# 使用 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
- **版本:** 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>
- **最后更新:** 2026-07-30T12:27:23Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

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

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 4.17.0
## 项目历史与用法

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。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 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
## 其他软件包管理器记录

- 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


## 相关链接

- [commitizen](https://pkg.so/zh-hans/pkg/npm/commitizen/) - Same normalized package name exists in another local package 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
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
