# 使用 Homebrew, Nix 安装 cspell

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

## 安装

```sh
sudo av install brew:cspell
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install cspell
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#cspell
```

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

## 软件包事实

- **软件包键:** brew:cspell
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/cspell>
- **版本:** 10.0.1
- **来源摘要:** Spell checker for code
- **主页:** <https://cspell.org>
- **上游文档:** <https://cspell.org>
- **许可证:** MIT
- **源码归档:** <https://registry.npmjs.org/cspell/-/cspell-10.0.1.tgz>
- **最后更新:** 2026-06-01T13:13:33Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- cspell (cli)
- cspell (别名)

## 依赖

- node

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 all

## 版本和新鲜度

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

CSpell is a spell checker for code, distributed as a Node-based CLI and library. Its niche is checking identifiers, comments, documentation, and source trees with dictionaries tuned for programming languages.

### 项目历史

The package README says cspell is a command-line tool and library for spell checking code, and that it was initially built as the spell-checking service for the Code Spell Checker extension for Visual Studio Code. The top-level README describes the current repository as the CSpell mono-repo.

### 采用历史

CSpell moved from editor-extension infrastructure into a standalone CLI used in local projects and CI. The official docs document npm, Yarn, pnpm, Bun, npx, and GitHub Action use, while the repository lists packages for the CLI, library, bundled dictionaries, ESLint plugin, glob handling, trie tools, and related support libraries.

### 使用方式

Official docs show typical CLI usage such as cspell . or cspell lint patterns, plus configuration discovery from JSON, YAML, JavaScript, TypeScript, TOML, package.json, and .vscode files. The package README emphasizes code-aware parsing, CamelCase and snake_case handling, language-specific dictionaries, and custom word lists.

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

CSpell is interesting to packagers because it is both a user-facing CLI and a dependency graph of dictionary and parser packages. Homebrew packaging gives non-Node users a simple cspell executable, while npm remains the canonical upstream distribution channel.

### 时间线

- 2017: npm package cspell 1.0.0 was published.
- 2023: GitHub releases show v7.3.1 in the available releases page.
- 2026: npm and Homebrew metadata list cspell 10.0.1 as current.

### Related projects

- The package README links CSpell to the Code Spell Checker extension for VS Code, and the repository lists cspell-dicts as the place for dictionary word changes.

### 来源

- <https://github.com/streetsidesoftware/cspell#readme>
- <https://github.com/streetsidesoftware/cspell/tree/main/packages/cspell#readme>
- <https://cspell.org/docs/getting-started>
- <https://cspell.org/docs/Configuration>
- <https://cspell.org/docs/installation>
- <https://registry.npmjs.org/cspell>
- <https://formulae.brew.sh/formula/cspell>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## 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: ./cspell.json
## 源数据库详情

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

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

- Nix - cspell: normalized package name match | nixpkgs package indexes: pkgs/by-name/cs/cspell/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## 相关链接

- [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.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [node](https://pkg.so/zh-hans/brew/node/) - Runtime dependency declared by Homebrew.
- [pyspelling](https://pkg.so/zh-hans/brew/pyspelling/) - Shares pkgdb curated category or tags: cli, developer-tools, quality, spell-checker.
- [pre-commit](https://pkg.so/zh-hans/brew/pre-commit/) - Shares pkgdb curated category or tags: cli, code-quality, developer-tools, linting.
- [typos-cli](https://pkg.so/zh-hans/brew/typos-cli/) - Shares pkgdb curated category or tags: cli, code-quality, developer-tools, spell-checker.
- [codespell](https://pkg.so/zh-hans/brew/codespell/) - Shares pkgdb curated category or tags: cli, code-quality, developer-tools, linting.
- [precious](https://pkg.so/zh-hans/brew/precious/) - Shares pkgdb curated category or tags: cli, code-quality, developer-tools, linting.
- [flake8](https://pkg.so/zh-hans/brew/flake8/) - Shares pkgdb curated category or tags: cli, code-quality, developer-tools, linting.
- [checkstyle](https://pkg.so/zh-hans/brew/checkstyle/) - Shares pkgdb curated category or tags: cli, code-quality, developer-tools, linting.
- [codebook-lsp](https://pkg.so/zh-hans/brew/codebook-lsp/) - Shares pkgdb curated category or tags: cli, code-quality, developer-tools, spell-checker.
- [cspell](https://pkg.so/zh-hans/npm/cspell/) - Same normalized package name appears in another local ecosystem. Shared terms: checker, cli, code, code-quality, cspell.
- [cspell-cli](https://pkg.so/zh-hans/npm/cspell-cli/) - Local package facts share a topical domain. Shared terms: checker, cli, code, code-quality, cspell.
- [cspell-gitignore](https://pkg.so/zh-hans/npm/cspell-gitignore/) - Local package facts share a topical domain. Shared terms: cli, code, code-quality, cspell, developer.
- [cspell](https://pkg.so/zh-hans/npm/cspell/) - Same normalized package name in another local ecosystem.

## Combined YAML source

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