# 使用 Homebrew, chocolatey, MacPorts, Nix, pacman, apt, scoop 安装 markdownlint-cli

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install markdownlint-cli
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install markdownlint-cli
```

  证据: MacPorts ports tree: textproc/markdownlint-cli/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#markdownlint-cli
```

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

- pacman (92%):

```sh
sudo pacman -S markdownlint-cli
```

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

- Debian apt (92%):

```sh
sudo apt install markdownlint
```

  证据: Debian stable package indexes: markdownlint from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

### Windows

- Chocolatey (92%):

```sh
choco install markdownlint-cli
```

  证据: Chocolatey community package catalog: markdownlint-cli from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','logexpert'

- Scoop (92%):

```sh
scoop install extras/.markdownlint
```

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

## 软件包事实

- **软件包键:** brew:markdownlint-cli
- **软件包管理器:** Homebrew
- **版本:** 0.49.1
- **来源摘要:** CLI for Node.js style checker and lint tool for Markdown files
- **主页:** <https://github.com/igorshubovych/markdownlint-cli>
- **最后更新:** 2026-07-16T00:53:44Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- markdownlint (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

markdownlint-cli is the command-line interface for David Anson's markdownlint rules, packaged as a Node.js CLI named markdownlint.

### 项目历史

The official repository was created in 2016 and positions the project as a CLI wrapper around the markdownlint package. Its README documents npm installation, Homebrew installation on macOS, Docker/GitHub Packages usage, glob handling, automatic fixes, configuration files, exit codes, and pre-commit integration.

The CLI evolved as practical automation around Markdown style rules: it can lint files, directories, and globs; read from stdin; emit JSON; ignore files; apply basic fixes; load custom rules; and override rule enable/disable settings from the command line.

### 采用历史

markdownlint-cli became part of Markdown quality gates for repositories because it fits npm scripts, shell commands, Docker, and pre-commit hooks. The supplied package facts show packaging across Homebrew, Chocolatey, Debian/Ubuntu, Nix, Arch, and Scoop, which is broad coverage for a documentation linter.

### 使用方式

Users typically run markdownlint against Markdown file globs, often quoting globs so the CLI rather than the shell expands them. Configuration can be supplied with --config or discovered from .markdownlint.jsonc, .markdownlint.json, .markdownlint.yaml, .markdownlint.yml, or .markdownlintrc; .markdownlintignore is used for exclusions unless --ignore-path points elsewhere.

The tool is common in CI because it has documented exit codes and can be added to pre-commit with the official repository as the hook source.

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

markdownlint-cli is package-manager-relevant because it turns a JavaScript linting library into a predictable cross-platform command. It is one of the standard small tools maintainers reach for when Markdown style needs to be enforced alongside code linting.

### 时间线

- 2016: GitHub repository created.
- 2016 onward: Tags begin with early 0.x releases and continue through later v0.x versions.
- 2026: Supplied package facts show packaging across npm-oriented and OS package-manager ecosystems.

### Related projects

- The README identifies markdownlint as the underlying API/rules package.
- The README lists markdownlint-cli2 as an alternate CLI implementation.

### 来源

- <https://api.github.com/repos/igorshubovych/markdownlint-cli>
- <https://github.com/DavidAnson/markdownlint>
- <https://github.com/igorshubovych/markdownlint-cli>
- source_facts.package-manager


## 安全说明

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: .markdownlint.jsonc, .markdownlint.json, .markdownlint.yaml, .markdownlint.yml, .markdownlintrc, .markdownlintignore, file supplied with --config
## 其他软件包管理器记录

- Nix - markdownlint-cli: normalized package name match | nixpkgs package indexes: pkgs/by-name/ma/markdownlint-cli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- pacman - markdownlint-cli - 0.48.0-1: normalized package name match | Arch Linux sync databases: markdownlint-cli from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Command-line interface for MarkdownLint | https://github.com/igorshubovych/markdownlint-cli
- MacPorts - markdownlint-cli: normalized package name match | MacPorts ports tree: textproc/markdownlint-cli/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Chocolatey - markdownlint-cli: normalized package name match | Chocolatey community package catalog: markdownlint-cli from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','logexpert'
- Debian apt - markdownlint - 0.13.0-4: installed executable or alias match | Debian stable package indexes: markdownlint from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Markdown lint tool | https://github.com/markdownlint/markdownlint
- Ubuntu apt - markdownlint - 0.13.0-4: installed executable or alias match | Ubuntu 24.04 LTS package indexes: markdownlint from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Markdown lint tool | https://github.com/markdownlint/markdownlint
- pacman - markdownlint - 0.17.0-1: installed executable or alias match | Arch Linux sync databases: markdownlint from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A lint tool to check markdown files and flag style issues | https://github.com/markdownlint/markdownlint
- Scoop - extras/.markdownlint: installed executable or alias match | Scoop official bucket manifest trees: .markdownlint.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1
- Scoop - main/.markdownlint: installed executable or alias match | Scoop official bucket manifest trees: .markdownlint.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- Scoop - versions/.markdownlint: installed executable or alias match | Scoop official bucket manifest trees: .markdownlint.json from https://api.github.com/repos/ScoopInstaller/Versions/git/trees/master?recursive=1


## Combined YAML source

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