Commitlint
commitlint.js.org › reference › cli.html
CLI | commitlint
❯ npx commitlint --help @commitlint/cli@20.5.2 - Lint your commit messages [input] reads from stdin if --edit, --env, --from and --to are omitted Options: -c, --color toggle colored output [boolean] [default: true] -g, --config path to the config file; result code 9 if config is missing [string] --print-config print resolved config [string] [choices: "", "text", "json"] -d, --cwd directory to execute in [string] [default: (Working Directory)] -e, --edit read last commit message from the specified file or fallbacks to ./.git/COMMIT_EDITMSG [string] -E, --env check message in the file at path
Home
To get the most out of commitlint you'll want to automate it in your project lifecycle.
Local setup
Since v8.0.0 commitlint won't output anything if there are no problems with your commit.
Guides
Install @commitlint/cli and a @commitlint/config-* / commitlint-config-* of your choice as devDependency and configure commitlint to use it.
Reference
You can add a commitlint field in package.json (or package.yaml) with an object that follows the below structure.
GitHub
github.com › conventional-changelog › commitlint
GitHub - conventional-changelog/commitlint: 📓 Lint commit messages
git clone git@github.com:conventional-changelog/commitlint.git cd commitlint yarn yarn run build # run build tasks yarn start # run tests, again on change yarn run commitlint # run CLI
Starred by 18.5K users
Forked by 965 users
Languages TypeScript 92.2% | JavaScript 7.8%
npm
npmjs.com › package › @commitlint › cli
commitlint/cli
March 15, 2026 - Lint your commit messages. Latest version: 20.5.2, last published: 4 days ago. Start using @commitlint/cli in your project by running `npm i @commitlint/cli`. There are 1174 other projects in the npm registry using @commitlint/cli.
» npm install @commitlint/cli
Published Apr 25, 2026
Version 20.5.2
Commitlint
commitlint.js.org
commitlint
To get the most out of commitlint you'll want to automate it in your project lifecycle.
Pub.dev
pub.dev › packages › commitlint_cli
commitlint_cli | Dart package
November 13, 2024 - Commitlint lint commit messages to satisfy conventional commit format
Published Jan 09, 2023
Version 0.8.1
Commitlint
commitlint.js.org › guides › ci-setup.html
Guide: CI Setup | commitlint
name: CI on: [push, pull_request] permissions: contents: read jobs: commitlint: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Setup node uses: actions/setup-node@v4 with: node-version: lts/* cache: npm - name: Install commitlint run: npm install -D @commitlint/cli @commitlint/config-conventional - name: Print versions run: | git --version node --version npm --version npx commitlint --version - name: Validate current commit (last commit) with commitlint if: github.event_name == 'push' run: npx commitlint --last --verbose - name: Validate PR commits with commitlint if: github.event_name == 'pull_request' run: npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose
Commitlint
commitlint.js.org › guides › getting-started.html
Getting started | commitlint
Install @commitlint/cli and a @commitlint/config-* / commitlint-config-* of your choice as devDependency and configure commitlint to use it.
GitHub
github.com › conventional-changelog › commitlint › blob › master › @commitlint › cli › CHANGELOG.md
commitlint/@commitlint/cli/CHANGELOG.md at master · conventional-changelog/commitlint
cli: introduce new --last flag, to stop recommending HEAD~1 (#3916) (99f4f3f) Note: Version bump only for package @commitlint/cli
Author conventional-changelog
CodeSandbox
codesandbox.io › examples › package › @commitlint › cli
commitlint/cli examples
Use this online @commitlint/cli playground to view and fork @commitlint/cli example apps and templates on CodeSandbox.
jsDocs.io
jsdocs.io › package › @commitlint › cli
commitlint/cli@20.5.0
March 15, 2026 - Information for npm package @commitlint/cli@20.5.0 - jsDocs.io
Commitlint
keisukeyamashita.github.io › commitlint-rs
Welcome to Commitlint | Commitlint
Run commitlint to lint your commit messages. See the guides about the CLI.
npm
npmjs.com › package › commitlint
commitlint - npm
March 15, 2026 - Lint your commit messages. Latest version: 20.5.0, last published: a month ago. Start using commitlint in your project by running `npm i commitlint`. There are 121 other projects in the npm registry using commitlint.
» npm install commitlint
Published Mar 15, 2026
Version 20.5.0
Commitlint
commitlint.jurien.dev › reference › cli
CLI | Commitlint
A lightweight, fast, and cross-platform CLI tool for linting Git commit messages. ✨ ... Run "commitlint <command> --help" for more information on a command.
npm
npmjs.com › package › @commitlint › config-conventional
commitlint/config-conventional
March 15, 2026 - Shareable commitlint config enforcing conventional commits. Use with @commitlint/cli and @commitlint/prompt-cli.
» npm install @commitlint/config-conventional
Published Mar 15, 2026
Version 20.5.0
Medium
trishan9.medium.com › what-is-commitlint-why-to-use-how-to-setup-and-more-2832d50ccff3
What is Commitlint? Why to use? How to Setup and more | by Trishan Wagle | Medium
September 8, 2023 - How to setup Commitlint in your project: Step 1: Install Commitlint ``` # Install and configure if needed npm install — save-dev @commitlint/{cli,config-conventional} # For Windows: npm install — save-dev @commitlint/config-conventional @commitlint/cli # Configure commitlint to use conventional config echo “module.exports = { extends: [‘@commitlint/config-conventional’] };” > commitlint.config.js ```
Commitlint
commitlint.js.org › guides › use-prompt.html
Guide: Use prompt | commitlint
yarn add --dev @commitlint/cli @commitlint/config-conventional @commitlint/prompt-cli echo "export default { extends: ['@commitlint/config-conventional'] };" > commitlint.config.js
GitHub
github.com › jurienhamaker › commitlint
GitHub - jurienhamaker/commitlint: A lightweight, fast, and cross-platform CLI tool for linting Git commit messages.
June 16, 2025 - A lightweight, fast, and cross-platform CLI tool for linting Git commit messages. Linting commit messages helps maintain a consistent commit history, which is critical for readability, automation, and collaboration across teams. commitlint ensures ...
Starred by 5 users
Forked by 2 users
Languages Go 99.8% | Makefile 0.2% | Go 99.8% | Makefile 0.2%
Npm
npm.io › package › @commitlint › cli
commitlint/cli
Check @commitlint/cli 19.8.1 package - Last release 19.8.1 with MIT licence at our NPM packages aggregator and search engine.