git-cliff1
A highly customizable changelog generator ⛰️
Usage
git-cliff [{-h | --help}]
[{-V | --version}]
[{-v | --verbose}] ...
[{-i | --init}]
[--templates-dir]
[--list-templates]
[{-c | --config}]
[--config-url]
[{-w | --workdir}]
[{-r | --repository}]
[--include-path]
[--exclude-path]
[--tag-pattern]
[--with-commit]
[--with-tag-message]
[--skip-tags]
[--ignore-tags]
[--count-tags]
[--limit-tags]
[--skip-commit]
[{-p | --prepend}]
[{-o | --output}]
[{-t | --tag}]
[--bump]
[--bumped-version]
[{-b | --body}]
[--body-file]
[{-l | --latest}]
[--current]
[{-u | --unreleased}]
[--topo-order]
[--use-branch-tags]
[--no-exec]
[{-x | --context}]
[--from-context]
[{-s | --strip}]
[--sort]
[--github-token]
[--github-repo]
[--gitlab-token]
[--gitlab-repo]
[--gitea-token]
[--gitea-repo]
[--bitbucket-token]
[--bitbucket-repo]
[--http-timeout]
[--use-native-tls]
[--offline]
[RANGE]
Overview
A highly customizable changelog generator ⛰️
Flags
|
Prints help information |
|---|---|
|
Prints version information |
|
Increases the logging verbosity |
|
Prints the names of the available templates (built-in and user-defined) |
|
Prints bumped version for unreleased changes |
|
Processes the commits starting from the latest tag |
|
Processes the commits that belong to the current tag |
|
Processes the commits that do not belong to a tag |
|
Sorts the tags topologically |
|
Include only the tags that belong to the current branch |
|
Disables the external command execution |
|
Prints changelog context as JSON |
|
Load TLS certificates from the native certificate store |
Options
-
-i, --init [<CONFIG>] -
Writes the default configuration file to cliff.toml
-
--templates-dir <PATH> -
Sets the directory to look up user-defined templates for `--init`.
A user-defined template overrides a built-in template of the same name.
May also be specified with the
GIT_CLIFF_TEMPLATES_DIRenvironment variable.
-
-c, --config <PATH> -
Sets the configuration file.
When omitted, the configuration is discovered automatically (a project `cliff.toml` / `.cliff.toml` / `.config/cliff.toml`, then the user configuration directory), falling back to the built-in default.
May also be specified with the
GIT_CLIFF_CONFIGenvironment variable.
-
--config-url <URL> -
Sets the URL for the configuration file
May also be specified with the
GIT_CLIFF_CONFIG_URLenvironment variable.
-
-w, --workdir <PATH> -
Sets the working directory
May also be specified with the
GIT_CLIFF_WORKDIRenvironment variable.
-
-r, --repository <PATH>... -
Sets the git repository
May also be specified with the
GIT_CLIFF_REPOSITORYenvironment variable.
-
--include-path <PATTERN> -
Sets the path to include related commits
May also be specified with the
GIT_CLIFF_INCLUDE_PATHenvironment variable.
-
--exclude-path <PATTERN> -
Sets the path to exclude related commits
May also be specified with the
GIT_CLIFF_EXCLUDE_PATHenvironment variable.
-
--tag-pattern <PATTERN> -
Sets the regex for matching git tags
May also be specified with the
GIT_CLIFF_TAG_PATTERNenvironment variable.
-
--with-commit <MSG> -
Sets custom commit messages to include in the changelog
May also be specified with the
GIT_CLIFF_WITH_COMMITenvironment variable.
-
--with-tag-message [<MSG>] -
Sets custom message for the latest release
May also be specified with the
GIT_CLIFF_WITH_TAG_MESSAGEenvironment variable.
-
--skip-tags <PATTERN> -
Sets the tags to skip in the changelog
May also be specified with the
GIT_CLIFF_SKIP_TAGSenvironment variable.
-
--ignore-tags <PATTERN> -
Sets the tags to ignore in the changelog
May also be specified with the
GIT_CLIFF_IGNORE_TAGSenvironment variable.
-
--count-tags <PATTERN> -
Sets the tags to count in the changelog
May also be specified with the
GIT_CLIFF_COUNT_TAGSenvironment variable.
-
--limit-tags <N> -
Limits the number of tags to process
May also be specified with the
GIT_CLIFF_LIMIT_TAGSenvironment variable.
-
--skip-commit <SHA1> -
Sets commits that will be skipped in the changelog
May also be specified with the
GIT_CLIFF_SKIP_COMMITenvironment variable.
-
-p, --prepend [<PATH>] -
Prepends entries to the given changelog file
May also be specified with the
GIT_CLIFF_PREPENDenvironment variable.
-
-o, --output [<PATH>] -
Writes output to the given file
May also be specified with the
GIT_CLIFF_OUTPUTenvironment variable.
-
-t, --tag <TAG> -
Sets the tag for the latest version
May also be specified with the
GIT_CLIFF_TAGenvironment variable.
-
--bump [<BUMP>] -
Bumps the version for unreleased changes. Optionally with specified version
-
-b, --body <TEMPLATE> -
Sets the template for the changelog body
May also be specified with the
GIT_CLIFF_TEMPLATEenvironment variable.
-
--body-file <PATH> -
Reads the template for the changelog body from a file
-
--from-context <PATH> -
Generates changelog from a JSON context
May also be specified with the
GIT_CLIFF_CONTEXTenvironment variable.
-
-s, --strip <PART> -
Strips the given parts from the changelog
Possible values:
- •
-
header
- •
-
footer
- •
-
all
--sort<SORT> [default: oldest]-
Sets sorting of the commits inside sections
Possible values:
- •
-
oldest
- •
-
newest
Options
-
--github-token <TOKEN> -
Sets the GitHub API token
May also be specified with the
GITHUB_TOKENenvironment variable.
-
--github-repo <OWNER/REPO> -
Sets the GitHub repository
May also be specified with the
GITHUB_REPOenvironment variable.
-
--gitlab-token <TOKEN> -
Sets the GitLab API token
May also be specified with the
GITLAB_TOKENenvironment variable.
-
--gitlab-repo <OWNER/REPO> -
Sets the GitLab repository
May also be specified with the
GITLAB_REPOenvironment variable.
-
--gitea-token <TOKEN> -
Sets the Gitea API token
May also be specified with the
GITEA_TOKENenvironment variable.
-
--gitea-repo <OWNER/REPO> -
Sets the Gitea repository
May also be specified with the
GITEA_REPOenvironment variable.
-
--bitbucket-token <TOKEN> -
Sets the Bitbucket API token
May also be specified with the
BITBUCKET_TOKENenvironment variable.
-
--bitbucket-repo <OWNER/REPO> -
Sets the Bitbucket repository
May also be specified with the
BITBUCKET_REPOenvironment variable.
-
--http-timeout <SECS> -
Sets the HTTP timeout for remote metadata requests in seconds
May also be specified with the
GIT_CLIFF_HTTP_TIMEOUTenvironment variable.
-
--offline -
Disable network access for remote repositories
May also be specified with the
GIT_CLIFF_OFFLINEenvironment variable.
Args
- [RANGE]
-
Sets the commit range to process
Version
v2.14.2