# Install markdownlint-cli2 with npm

A fast, flexible, configuration-based command-line interface for linting Markdown/CommonMark files with the markdownlint library. Version 0.22.1 via npm; verified 2026-04-22.

## Install

```sh
sudo av install npm:markdownlint-cli2
```

Additional install commands:

### Portable and language managers

- npm (100%):

```sh
npm install -g markdownlint-cli2
```

  Evidence: local npm package metadata

## Package facts

- **Package key:** npm:markdownlint-cli2
- **Package manager:** npm
- **Package manager page:** <https://www.npmjs.com/package/markdownlint-cli2>
- **Version:** 0.22.1
- **Source summary:** A fast, flexible, configuration-based command-line interface for linting Markdown/CommonMark files with the markdownlint library
- **Homepage:** <https://github.com/DavidAnson/markdownlint-cli2>
- **Repository:** <https://github.com/DavidAnson/markdownlint-cli2>
- **Upstream docs:** <https://github.com/DavidAnson/markdownlint-cli2>
- **License:** MIT
- **Source archive:** <https://registry.npmjs.org/markdownlint-cli2/-/markdownlint-cli2-0.22.1.tgz>
- **Issue tracker:** <https://github.com/DavidAnson/markdownlint-cli2/issues>
- **Published:** 2026-04-22T06:06:25.310Z
- **Last updated:** 2026-04-22T06:06:25.310Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- markdownlint-cli2 (cli)

## Dependencies

- globby
- js-yaml
- jsonc-parser
- jsonpointer
- markdown-it
- markdownlint
- markdownlint-cli2-formatter-default
- micromatch
- smol-toml

## Build dependencies

- @eslint/js
- @playwright/test
- @stylistic/eslint-plugin
- ajv
- ava
- c8
- cpy
- cpy-cli
- eslint
- eslint-plugin-jsdoc
- eslint-plugin-n
- eslint-plugin-unicorn
- execa
- markdown-it-emoji
- markdown-it-for-inline
- markdownlint-cli2-formatter-codequality
- markdownlint-cli2-formatter-json
- markdownlint-cli2-formatter-junit
- markdownlint-cli2-formatter-pretty
- markdownlint-cli2-formatter-sarif
- markdownlint-cli2-formatter-summarize
- markdownlint-cli2-formatter-template
- markdownlint-rule-extended-ascii
- npm-run-all
- terminal-link

## Install behavior

- Post-install hook: not defined
- Bottle: not available

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.22.1
- Package-manager updated: 2026-04-22
- Local data: ok
- Upstream repository: https://github.com/DavidAnson/markdownlint-cli2
- info: No cached GitHub release or tag data was available.

## Security Notes

No matching local secret-handling manifest was found for markdownlint-cli2. Nucleus package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** npm registry
- **Dist Tags:** Latest: 0.22.1
- **Version Count:** 53
- **Maintainers:** davidanson
- **Author:** David Anson
- **Publisher:** davidanson
- **Engines:** Node: >=20
- **Funding:** <https://github.com/sponsors/DavidAnson>
- **Integrity:** sha512-X14ZbytybDCXAViDmtN4DKLt9ZTrRn+oOrxTYlg3a65jS6QcYYbAkGPh/En2L/GDNbFYJ6lKaQSUNrrbN1bPrw==
- **Shasum:** 41795b1e4f5f3cabd1317e3bca6fb6da452f0863
- **Unpacked Size:** 226,187
- **File Count:** 0
- **Created At:** 2020-07-04T17:42:06.527Z
- **Latest Published At:** 2026-04-22T06:06:25.310Z
- **Modified At:** 2026-04-22T06:06:25.435Z

## Other Package-Manager Records

- Nix - markdownlint-cli2: normalized package name match | nixpkgs package indexes: pkgs/by-name/ma/markdownlint-cli2/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- pacman - markdownlint-cli2 - 0.22.0-1: normalized package name match | Arch Linux sync databases: markdownlint-cli2 from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Fast, flexible, configuration-based command-line interface for linting Markdown/CommonMark files with the markdownlint library | https://github.com/DavidAnson/markdownlint-cli2


## Related links

- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched curated package taxonomy and local package facts.
- [markdownlint-cli2](https://www.automicvault.com/pkg/brew/markdownlint-cli2/) - Same normalized package name appears in another local ecosystem. Shared terms: based, cli2, commonmark, configuration, fast.
- [markdownlint-cli](https://www.automicvault.com/pkg/npm/markdownlint-cli/) - Both packages work with overlapping file formats or content types. Shared terms: interface, js-yaml, jsonc, jsonc-parser, jsonpointer.
- [rulesync](https://www.automicvault.com/pkg/npm/rulesync/) - Both packages work with overlapping file formats or content types. Shared terms: configuration, files, globby, js-yaml, jsonc.
- [markdownlint-cli2](https://www.automicvault.com/pkg/brew/markdownlint-cli2/) - Same normalized package name exists in another local package ecosystem.

## Sources

- Nucleus package database
- package-page enrichment
- package version freshness
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
