# 使用 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
- **版本:** 10.0.1
- **来源摘要:** Spell checker for code
- **主页:** <https://cspell.org>
- **最后更新:** 2026-06-01T13:13:33Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- cspell (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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
## 其他软件包管理器记录

- 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


## 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
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
