macOS
brew install markdownlint-cli2local Homebrew formula metadata
brew
Fast, flexible, config-based cli for linting Markdown/CommonMark files. Version 0.23.0 via Homebrew; verified 2026-07-02.
install
brew install markdownlint-cli2local Homebrew formula metadata
nix profile install nixpkgs#markdownlint-cli2nixpkgs package indexes · pkgs/by-name/ma/markdownlint-cli2/package.nix · source: api.github.com
sudo pacman -S markdownlint-cli2Arch Linux sync databases · markdownlint-cli2 · source: geo.mirror.pkgbuild.com
overview
Fast, flexible, config-based cli for linting Markdown/CommonMark files
history
markdownlint-cli2 is David Anson's newer command-line wrapper around the Node.js markdownlint library, intended for fast, configuration-centered linting of Markdown and CommonMark files.
The GitHub repository was created on 2020-07-03, shortly before the npm package appeared on 2020-07-04. Its README presents it as a replacement-style companion to markdownlint-cli: it is configuration-based, prioritizes speed, and keeps compatibility with markdownlint rules while changing the user workflow around config files and glob handling.
The project sits in the same ecosystem as David Anson's markdownlint library and vscode-markdownlint extension. It exposes the markdownlint engine as a standalone CLI, an npm package, Docker images, and a pre-commit hook target, which made it useful outside editors and CI systems.
By 2026-07-01 the GitHub repository reported 849 stars and 76 forks, and the package was available through npm, Homebrew, Nix, and Arch packaging according to the supplied package-manager facts. The README also documents a GitHub Action and Docker images, reflecting use in repository automation rather than only local editing.
Typical use is to run markdownlint-cli2 over Markdown globs, often excluding generated or dependency directories with ignored glob patterns. The tool discovers project config files such as .markdownlint-cli2.jsonc, .markdownlint-cli2.yaml, .markdownlint.* variants, package.json, or pyproject.toml, and also accepts an explicit --config path.
Package maintainers care about it because it is a small but opinionated CLI around an established Markdown linter: it standardizes Markdown style checks for docs-heavy repositories and is easy to wire into npm scripts, pre-commit, Docker, or GitHub Actions.
markdownlint-cli2 is a good example of the second-generation CLI pattern around a reusable library: the core lint rules live in markdownlint, while the package-manager-facing tool optimizes installation, config discovery, CI ergonomics, and formatter support.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
local files
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.
Config paths the tool may read or write during local use.
.markdownlint-cli2.jsonc.markdownlint-cli2.yaml.markdownlint-cli2.cjs.markdownlint-cli2.mjs.markdownlint.jsonc.markdownlint.json.markdownlint.yaml.markdownlint.yml.markdownlint.cjs.markdownlint.mjspackage.jsonpyproject.tomlfile supplied with --configexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
markdownlint-cli2 | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/DavidAnson/markdownlint-cli2
install metadata
| Package key | brew:markdownlint-cli2 |
|---|---|
| Version | 0.23.0 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/markdownlint-cli2 |
| Homepage | https://github.com/DavidAnson/markdownlint-cli2 |
| Repository | https://github.com/DavidAnson/markdownlint-cli2 |
| Upstream docs | https://github.com/DavidAnson/markdownlint-cli2#readme |
| License | MIT |
| Source archive | https://registry.npmjs.org/markdownlint-cli2/-/markdownlint-cli2-0.23.0.tgz |
| Last updated | 2026-07-02T13:14:10Z |
| Pulse | updated |
| Dependencies | node |
| Bottle | available (on all) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | markdownlint-cli2 |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
markdownlint-cli2
nix profile install nixpkgs#markdownlint-cli2markdownlint-cli2 0.22.0-1
Fast, flexible, configuration-based command-line interface for linting Markdown/CommonMark files with the markdownlint library
https://github.com/DavidAnson/markdownlint-cli2
sudo pacman -S markdownlint-cli2source trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.