## About **git-cliff** can generate [changelog](https://en.wikipedia.org/wiki/Changelog) files from the [Git](https://git-scm.com/) history by utilizing [conventional commits](#conventional_commits) as well as regex-powered [custom parsers](#commit_parsers). The [changelog template](#templating) can be customized with a [configuration file](#configuration-file) to match the desired format. ![preview](https://user-images.githubusercontent.com/24392180/128637997-5713ba25-d8f3-40c7-8ba8-ea7f333ead88.png)
Table of Contents - [About](#about) - [Installation](#installation) - [From crates.io](#from-cratesio) - [From AUR](#from-aur) - [Binary Releases](#binary-releases) - [Usage](#usage) - [Command Line Arguments](#command-line-arguments) - [Examples](#examples) - [Docker](#docker) - [GitHub Action](#github-action) - [Configuration File](#configuration-file) - [changelog](#changelog) - [header](#header) - [body](#body) - [trim](#trim) - [footer](#footer) - [git](#git) - [conventional_commits](#conventional_commits) - [commit_parsers](#commit_parsers) - [filter_commits](#filter_commits) - [tag_pattern](#tag_pattern) - [skip_tags](#skip_tags) - [Templating](#templating) - [Context](#context) - [Conventional Commits](#conventional-commits) - [Non-Conventional Commits](#non-conventional-commits) - [Syntax](#syntax) - [Examples](#examples-1) - [Basic](#basic) - [Detailed](#detailed) - [Scoped](#scoped) - [Keep a Changelog](#keep-a-changelog) - [Similar Projects](#similar-projects) - [License](#license) - [Copyright](#copyright)
## Installation ### From crates.io [git-cliff](crates.io/crates/git-cliff) can be installed from crates.io: ```sh cargo install git-cliff ``` ### From AUR If you are using Arch Linux, [git-cliff](https://aur.archlinux.org/packages/git-cliff/) can be installed from the [AUR](https://aur.archlinux.org/) using an [AUR helper](https://wiki.archlinux.org/title/AUR_helpers): ```sh paru -S git-cliff ``` ### Binary Releases See the available binaries for different operating systems/architectures from the [releases page](https://github.com/orhun/git-cliff/releases). ## Usage ### Command Line Arguments ``` git-cliff [FLAGS] [OPTIONS] [RANGE] ``` **Flags:** ``` -v, --verbose Increases the logging verbosity -l, --latest Processes the commits starting from the latest tag -u, --unreleased Processes the commits that do not belong to a tag -h, --help Prints help information -V, --version Prints version information ``` **Options:** ``` -c, --config Sets the configuration file [env: CONFIG=] [default: cliff.toml] -w, --workdir Sets the working directory [env: WORKDIR=] -r, --repository Sets the repository to parse commits from [env: REPOSITORY=] -p, --prepend Prepends entries to the given changelog file [env: PREPEND=] -o, --output Writes output to the given file [env: OUTPUT=] -t, --tag Sets the tag for the latest version [env: TAG=] -b, --body