# Command-Line Help for `changelog` This document contains the help content for the `changelog` command-line program. **Command Overview:** * [`changelog`↴](#changelog) * [`changelog generate`↴](#changelog-generate) * [`changelog release`↴](#changelog-release) * [`changelog validate`↴](#changelog-validate) * [`changelog show`↴](#changelog-show) * [`changelog new`↴](#changelog-new) * [`changelog remove`↴](#changelog-remove) ## `changelog` Changelog generator **Usage:** `changelog ` ###### **Subcommands:** * `generate` — Generate release notes. By default, generate from the last release in the changelog to HEAD * `release` — Generate a new release. By default, use the last tag present in the repo, sorted using the [semver](https://semver.org/) format * `validate` — Validate a changelog syntax * `show` — Show a releases on stdout. By default, show the last release * `new` — Create a new changelog file with an accepted syntax * `remove` — Remove a release ## `changelog generate` Generate release notes. By default, generate from the last release in the changelog to HEAD **Usage:** `changelog generate [OPTIONS]` ###### **Options:** * `-f`, `--file ` — Path to the changelog file Default value: `CHANGELOG.md` * `--map ` — Path to the commit type to changelog section map * `--parsing ` — Parsing of the commit message Default value: `smart` Possible values: `smart`, `strict` * `--exclude-unidentified` — Don't include unidentified commits * `--exclude-not-pr` — Don't include commits which are not attached to a pull request * `--provider ` — We use the Github api to map commit sha to PRs Default value: `github` Possible values: `github`, `none` * `--repo ` — Needed for fetching PRs. Example: 'wiiznokes/changelog-generator'. Already defined for you in Github Actions * `--omit-pr-link` — Omit the PR link from the output * `--omit-thanks` — Omit contributors' acknowledgements/mention * `--stdout` — Print the result on the standard output * `--specific ` — Generate only this commit, or tag * `--milestone ` — Include all commits of this milestone * `--since ` — Include all commits in \"since..until\" * `--until ` — Include all commits in \"since..until\" ## `changelog release` Generate a new release. By default, use the last tag present in the repo, sorted using the [semver](https://semver.org/) format **Usage:** `changelog release [OPTIONS]` ###### **Options:** * `-f`, `--file ` — Path to the changelog file Default value: `CHANGELOG.md` * `-v`, `--version ` — Version number for the release. If omitted, use the last tag present in the repo * `--previous-version ` — Previous version number. Used for the diff * `--provider ` — We use the Github link to produce the tags diff Default value: `github` Possible values: `github`, `none` * `--repo ` — Needed for the tags diff PRs. Example: 'wiiznokes/changelog-generator'. Already defined for you in Github Actions * `--omit-diff` — Omit the commit history between releases * `--force` — Override the release with the same version if it exist, by replacing all the existing release notes * `--header
` — Add this text as a header of the release. If a header already exist, it will be inserted before the existing one * `--merge-dev-versions ` — Merge older dev version into this new release Default value: `auto` Possible values: - `auto`: Yes if the version is stable, no otherwise - `no` - `yes` * `--stdout` — Print the result on the standard output ## `changelog validate` Validate a changelog syntax **Usage:** `changelog validate [OPTIONS]` ###### **Options:** * `-f`, `--file ` — Path to the changelog file Default value: `CHANGELOG.md` * `--format` — Format the changelog * `--map ` — Path to the commit type to changelog section map * `--ast` — Show the Abstract Syntax Tree * `--stdout` — Print the result on the standard output ## `changelog show` Show a releases on stdout. By default, show the last release **Usage:** `changelog show [OPTIONS]` ###### **Options:** * `-f`, `--file ` — Path to the changelog file Default value: `CHANGELOG.md` * `-n ` — -1 being unreleased, 0 the last release, ... Default value: `0` * `-v`, `--version ` — Show a specific version. Also accept regex. Example: 1.0.0-* ## `changelog new` Create a new changelog file with an accepted syntax **Usage:** `changelog new [OPTIONS]` ###### **Options:** * `-p`, `--path ` — Path to the changelog file Default value: `CHANGELOG.md` * `-f`, `--force` — Override of existing file ## `changelog remove` Remove a release **Usage:** `changelog remove [OPTIONS] <-n |--version >` ###### **Options:** * `-f`, `--file ` — Path to the changelog file Default value: `CHANGELOG.md` * `--stdout` — Print the result on the standard output * `-n ` — -1 being unreleased, 0 the last release, ... * `-v`, `--version ` — Remove a specific version. Also accept regex. Example: 1.0.0-*
This document was generated automatically by clap-markdown.