Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 811 Bytes

reference-cli.md

File metadata and controls

17 lines (14 loc) · 811 Bytes

CLI

❯ npx commitlint --help

[email protected] - Lint your commit messages

  [input] reads from stdin if --edit, --from and --to are omitted
  --color, -c            toggle colored output, defaults to: true
  --cwd, -d              directory to execute in, defaults to: /Users/marneb/Documents/oss/commitlint
  --edit, -e             read last commit message from the specified file or fallbacks to ./.git/COMMIT_EDITMSG
  --extends, -x          array of shareable configurations to extend
  --from, -f             lower end of the commit range to lint; applies if edit=false
  --to, -t               upper end of the commit range to lint; applies if edit=false
  --quiet, -q            toggle console output
  --parser-preset, -p    configuration preset to use for conventional-commits-parser