# 使用 Homebrew, Nix, winget 安装 commitlint

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

## 安装

```sh
sudo av install brew:commitlint
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install commitlint
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#commitlint
```

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

### Windows

- winget (92%):

```sh
winget install --id Commitlint.Commitlint -e
```

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

## 软件包事实

- **软件包键:** brew:commitlint
- **软件包管理器:** Homebrew
- **版本:** 21.2.1
- **来源摘要:** Lint commit messages according to a commit convention
- **主页:** <https://commitlint.js.org/#/>
- **最后更新:** 2026-07-09T10:06:43Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- commitlint (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

commitlint is a Node.js CLI and library family for checking commit messages against a convention, most commonly Conventional Commits.

### 项目历史

The project is part of the conventional-changelog GitHub organization and presents itself as the linting half of the Conventional Commits workflow. Its README describes three core package-culture concerns: being a good Commitizen companion, sharing configuration through npm, and integrating with conventional-changelog.

### 采用历史

The npm package history for `@commitlint/cli` dates to 2017. The official README describes commitlint as stable and used in various projects, with setup paths for local Git hooks and CI. The project also documents shareable npm configurations, which made commit rules reusable across JavaScript monorepos and organizations.

### 使用方式

commitlint is usually run as a commit-msg hook through tools such as Husky, or in CI against commit ranges. Its configuration files and package.json field make it fit naturally into Node package workflows.

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

For package maintainers, commitlint matters because it turns release-note and versioning conventions into a lintable contract. It is often paired with conventional-changelog, release automation, and Commitizen-style prompts.

### 时间线

- 2017: npm records public `@commitlint/cli` releases.
- 2020s: Official docs describe local-hook, CI, shared-config, and prompt workflows.
- 2026: npm continues to publish 21.x releases.

### Related projects

- commitlint is closely related to Conventional Commits, conventional-changelog, Commitizen, Husky, and npm shareable configuration packages.

### 来源

- <https://commitlint.js.org/>
- <https://github.com/conventional-changelog/commitlint>
- <https://raw.githubusercontent.com/conventional-changelog/commitlint/master/README.md>
- <https://registry.npmjs.org/@commitlint%2Fcli>


## 安全说明

没有找到 commitlint 的匹配本地密钥处理 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: ./commitlint.config.js, ./commitlint.config.cjs, ./commitlint.config.mjs, ./commitlint.config.ts, ./commitlint.config.cts, ./commitlint.config.mts, ./.commitlintrc, ./.commitlintrc.json, ./.commitlintrc.yaml, ./.commitlintrc.yml, ./.commitlintrc.js, ./.commitlintrc.cjs, ./.commitlintrc.mjs, ./.commitlintrc.ts, ./.commitlintrc.cts, ./.commitlintrc.mts, ./package.json
## 其他软件包管理器记录

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


## Combined YAML source

View the package source record on GitHub. [combined/commitlint.yml](https://github.com/mxcl/pkgdb/blob/main/combined/commitlint.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
