# 使用 Homebrew, apk, Nix, pacman, scoop, winget 安装 typos-cli

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

## 安装

```sh
sudo av install brew:typos-cli
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install typos-cli
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add typos
```

  证据: Alpine Linux edge package indexes: typos from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#typos
```

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

- pacman (92%):

```sh
sudo pacman -S typos
```

  证据: Arch Linux sync databases: typos from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

### Windows

- Scoop (92%):

```sh
scoop install main/typos
```

  证据: Scoop official bucket manifest trees: bucket/typos.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id Crate-CI.Typos -e
```

  证据: Windows Package Manager source index: Crate-CI.Typos from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:typos-cli
- **软件包管理器:** Homebrew
- **版本:** 1.48.0
- **来源摘要:** Source code spell checker
- **主页:** <https://github.com/crate-ci/typos>
- **仓库:** <https://github.com/crate-ci/typos>
- **最后更新:** 2026-06-30T22:09:34Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- typos (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

typos-cli is the command-line package for `typos`, a Rust source-code spell checker. Its upstream README emphasizes two package-nerd requirements: it is fast enough for monorepos and has low enough false positives to run on pull requests.

### 项目历史

The crate-ci/typos repository was created in April 2019. The changelog shows the project reached 1.0.0 in May 2021, after earlier 0.x releases, and continued with frequent dictionary and correctness updates into 2026.

The official design document explains the central choice that shaped the tool: unlike dictionary-distance spell checkers, typos uses known misspelling corrections to keep automated correction and CI use low-noise. Its source-code focus includes identifier splitting for snake_case, CamelCase, acronyms, hashes, escapes, UUIDs, and other code-shaped text.

The README documents a full command-line workflow: plain `typos` for reporting, `typos --write-changes` for automatic fixes, `--diff` for patches, `--format json` for machine-readable output, and `--dump-config`, `--files`, `--identifiers`, and `--words` for debugging.

### 采用历史

Official docs present typos as both a standalone binary and an integration target. The README lists pre-built GitHub releases, `cargo install typos-cli --locked`, Homebrew, Conda, and Pacman installation paths, and it links official integration docs for GitHub Actions and pre-commit.

The batch input shows broader package-manager coverage across apk, Homebrew, Nix, Pacman, Scoop, and Winget. Upstream release metadata shows v1.48.0 published in June 2026, so the package is actively maintained in the current package-manager ecosystem.

### 使用方式

In package and CI workflows, typos is used as a repository check that fails on known spelling mistakes while avoiding noisy guesses. Developers can tune false positives in `_typos.toml` or related config files, extend identifiers and words, disable content checking for localized files, and use JSON Lines output for custom integrations.

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

typos-cli is significant because it packages source-code-aware spell checking as a fast, reproducible binary that fits package-manager, pre-commit, and CI habits. For maintainers who care about low-friction quality gates, its value is that it can be installed like any other dev tool and run unattended on large repositories.

### 时间线

- 2019: Public GitHub repository created.
- 2021: 1.0.0 released.
- 2024: Ongoing 1.x release train continued.
- 2026: v1.48.0 released with June 2026 dictionary updates.

### Related projects

- The official comparison document compares typos with client9/misspell, codespell, scspell3k, and topy. The README also points to editor and CI integrations including GitHub Actions, pre-commit, Visual Studio Code, typos-lsp, and GitLab Code Quality.

### 来源

- <https://api.github.com/repos/crate-ci/typos>
- <https://api.github.com/repos/crate-ci/typos/releases>
- <https://github.com/crate-ci/typos#readme>
- <https://github.com/crate-ci/typos/blob/master/CHANGELOG.md>
- <https://github.com/crate-ci/typos/blob/master/docs/comparison.md>
- <https://github.com/crate-ci/typos/blob/master/docs/design.md>
- source_facts.package-manager


## 安全说明

没有找到 typos-cli 的匹配本地密钥处理 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: file supplied via --config PATH, typos.toml, _typos.toml, .typos.toml, Cargo.toml, pyproject.toml
## 其他软件包管理器记录

- Nix - typos: installed executable or alias match | nixpkgs package indexes: pkgs/by-name/ty/typos/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - typos - 1.47.1-r0: installed executable or alias match | Alpine Linux edge package indexes: typos from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Source code spell checker | https://github.com/crate-ci/typos
- apk - typos-doc - 1.47.1-r0: installed executable or alias match | Alpine Linux edge package indexes: typos-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Source code spell checker (documentation) | https://github.com/crate-ci/typos
- pacman - typos - 1.48.0-1: installed executable or alias match | Arch Linux sync databases: typos from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Source code spell checker | https://github.com/crate-ci/typos
- Scoop - main/typos: installed executable or alias match | Scoop official bucket manifest trees: bucket/typos.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - Crate-CI.Typos: installed executable or alias match | Windows Package Manager source index: Crate-CI.Typos from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

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