# 使用 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
- **软件包管理器页面:** <https://formulae.brew.sh/formula/markdownlint-cli>
- **版本:** 0.49.1
- **来源摘要:** CLI for Node.js style checker and lint tool for Markdown files
- **主页:** <https://github.com/igorshubovych/markdownlint-cli>
- **仓库:** <https://github.com/igorshubovych/markdownlint-cli>
- **许可证:** MIT
- **源码归档:** <https://registry.npmjs.org/markdownlint-cli/-/markdownlint-cli-0.49.1.tgz>
- **最后更新:** 2026-07-16T00:53:44Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- markdownlint (cli)
- markdownlint (别名)

## 依赖

- node

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.49.1
- 管理器更新时间: 2026-07-16
- 本地数据: OK
- 上游仓库: https://github.com/igorshubovych/markdownlint-cli
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

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
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** markdownlint-cli
- **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 - 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


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [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.
- [node](https://pkg.so/zh-hans/brew/node/) - Runtime dependency declared by Homebrew.
- [markdownlint-cli2](https://pkg.so/zh-hans/brew/markdownlint-cli2/) - Package name indicates the same formula family.
- [cpplint](https://pkg.so/zh-hans/brew/cpplint/) - Shares pkgdb curated category or tags: cli, developer-tools, linting, style-checker.
- [editorconfig-checker](https://pkg.so/zh-hans/brew/editorconfig-checker/) - Shares pkgdb curated category or tags: cli, developer-tools, linting, style-checker.
- [cmark](https://pkg.so/zh-hans/brew/cmark/) - Shares pkgdb curated category or tags: cli, commonmark, developer-tools, markdown.
- [bashate](https://pkg.so/zh-hans/brew/bashate/) - Shares pkgdb curated category or tags: cli, developer-tools, linting, style-checker.
- [cmark-gfm](https://pkg.so/zh-hans/brew/cmark-gfm/) - Shares pkgdb curated category or tags: cli, commonmark, developer-tools, markdown.
- [comrak](https://pkg.so/zh-hans/brew/comrak/) - Shares pkgdb curated category or tags: cli, commonmark, developer-tools, markdown.
- [cmake-lint](https://pkg.so/zh-hans/brew/cmake-lint/) - Shares pkgdb curated category or tags: cli, developer-tools, linting, style-checker.
- [markdownlint-cli](https://pkg.so/zh-hans/npm/markdownlint-cli/) - Same normalized package name appears in another local ecosystem. Shared terms: cli, developer, developer-tools, linting, markdown.
- [markdownlint-cli2](https://pkg.so/zh-hans/npm/markdownlint-cli2/) - Both packages work with overlapping file formats or content types. Shared terms: cli, commonmark, developer, developer-tools, files.
- [markdownlint-cli](https://pkg.so/zh-hans/npm/markdownlint-cli/) - Same normalized package name in another local ecosystem.

## 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
- 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
