🌐
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
create-semantic-module CLI for quickly integrating commitizen and commitlint in new or existing projects
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
🌐
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
commitlint
To get the most out of commitlint you'll want to automate it in your project lifecycle.
🌐
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.
🌐
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
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
🌐
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
Find elsewhere
🌐
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.
🌐
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 ```
🌐
npm
npmjs.com › package › commitlint
commitlint - npm
March 15, 2026 - Alias of @commitlint/cli · conventional-changelog · commitlint · cli · npm i commitlint · github.com/conventional-changelog/commitlint · commitlint.js.org/ 581,206 · 20.5.0 · MIT · a month ago · marionebl · martinhelmut · escapedcat · bycedric · Analyze security with SocketCheck bundle sizeView package healthExplore dependencies ·
      » npm install commitlint
    
Published   Mar 15, 2026
Version   20.5.0
🌐
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
🌐
Commitlint
keisukeyamashita.github.io › commitlint-rs
Welcome to Commitlint | Commitlint
Run commitlint to lint your commit messages. See the guides about the CLI.
🌐
freeCodeCamp
freecodecamp.org › news › how-to-use-commitlint-to-write-good-commit-messages
How to Write Good Commit Messages with Commitlint
November 12, 2021 - npm install @commitlint/cli @commitlint/config-conventional --save-dev # OR yarn add -D @commitlint/cli @commitlint/config-conventional
🌐
DEV Community
dev.to › thecharacterv › git-better-with-commitlint-and-conventional-commits-21pp
Git Better with Commitlint and Conventional Commits - DEV Community
May 26, 2023 - Run the command npm install --save-dev @commitlint/config-conventional @commitlint/cli in your terminal .
🌐
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
🌐
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.