Skip to main content

CLI

The repo-toolkit-changelog binary reads git metadata from the current directory and writes CHANGELOG.md (by default) prepended with the new release entry.

Usage

repo-toolkit-changelog [options]

Flags

FlagDescriptionDefault
--config <path>Config file with changelog options such as custom types
--cwd <path>Working directory to read package and git metadata fromprocess.cwd()
--output <path>Output file pathCHANGELOG.md
--tag-prefix <prefix>Tag prefix to matchv
--release-count <number>Number of releases to include0 (all)
--appendAppend to the output instead of prependingfalse
--first-releaseInclude all commits when no prior release tag existsfalse
--no-skip-unstableInclude unstable releases(skipped)
--no-output-unreleasedOmit the unreleased section(included)
-h, --helpShow help

Examples

Generate the full changelog:

repo-toolkit-changelog

Generate into a custom file and only include the last 3 releases:

repo-toolkit-changelog --output HISTORY.md --release-count 3

Use a custom tag prefix (e.g. release-1.2.3):

repo-toolkit-changelog --tag-prefix release-

See Config File for --config usage. CLI flags override values from the config file.