|
1 | 1 | # CLI
|
2 | 2 |
|
3 |
| -## Installation |
4 |
| - |
5 | 3 | ```bash
|
6 |
| -npm install --save-dev @commitlint/cli |
7 |
| -``` |
| 4 | +❯ npx commitlint --help |
8 | 5 |
|
9 |
| -## Usage |
10 |
| - |
11 |
| -```bash |
12 |
| -❯ commitlint --help |
13 |
| - commitlint - Lint commit messages |
| 6 | +[email protected] - Lint your commit messages |
14 | 7 |
|
15 |
| - [input] reads from stdin if --edit, --from, --to are omitted |
16 |
| - --color, -c toggle formatted output, defaults to: true |
17 |
| - --edit, -e read last commit message found in ./.git/COMMIT_EDITMSG |
18 |
| - --extends, -x array of resolvable ids pointing to shareable configurations to extend |
19 |
| - --from, -f lower end of the commit range to lint; applies if edit=false |
20 |
| - --to, -t upper end of the commit range to lint; applies if edit=false |
21 |
| - --quiet, -q toggle console output |
22 |
| - --parser-preset, -p resolvable id to load and pass to conventional-commits-parser |
| 8 | + [input] reads from stdin if --edit, --from and --to are omitted |
| 9 | + --color, -c toggle colored output, defaults to: true |
| 10 | + --cwd, -d directory to execute in, defaults to: /Users/marneb/Documents/oss/commitlint |
| 11 | + --edit, -e read last commit message from the specified file or fallbacks to ./.git/COMMIT_EDITMSG |
| 12 | + --extends, -x array of shareable configurations to extend |
| 13 | + --from, -f lower end of the commit range to lint; applies if edit=false |
| 14 | + --to, -t upper end of the commit range to lint; applies if edit=false |
| 15 | + --quiet, -q toggle console output |
| 16 | + --parser-preset, -p configuration preset to use for conventional-commits-parser |
23 | 17 | ```
|
0 commit comments