Skip to main content

Changelog CLI

PyPI version Build Status Code Health Coverage Status PyPI Stories in Ready

A command line interface for managing your CHANGELOG.md files. Designed to make it easy to manage your repositories release history according to Keep a Changelog.

Installation

install using pip via:

pip install changelog-cli

How To

To keep an accurate changelog, whenenever you commit a change that affects how end users use your project, use this command line tool to add a line to the changelog.

If you added a new feature, use something like changelog new "added feature x". This will add a line to your CHANGELOG.md under the ### New section.

When you are ready for release, run changelog release and that will infer the correct semantic version based on the types of changes since the last release. For example your new change should prompt a minor (0.X.0) release. A breaks change would prompt a major (X.0.0) version bump and fix or change changes would prompt a patch (0.0.X).

You can manually override what type of of release via changelog release --minor using the --patch, --minor or --major flags.

Commands

changelog init -> Creates a CHANGELOG.md with some basic documentation in it.

changelog (new|change|fix|breaks) "<message>" -> adds a line to the appropriate section

changelog release (--major|minor|patch|suggest) (--yes) -> Cuts a release for the changelog, incrementing the version.

changelog current -> returns the current version of the project based on the changelog

changelog suggest -> returns the suggested version of the next release based on the current logged changes

changelog --version -> get the current version of the changelog tool

changelog --help -> show helps screen

Shortcut

If you get tired of typing out changelog for every command, it can also be accessed via its shorthand cl

Example Usage

>>> changelog current
1.4.1
>>> changelog new "add new feature x"
>>> changelog suggest
1.5.0
>>> changelog breaks "removing key feature y"
>>> cl release
Planning on releasing version 2.0.0. Proceed? [y/N]: n
>>> cl release --minor
>>> cl current
1.5.0

Example Changelog as a result of the above

# CHANGELOG

All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/) and [Keep a Changelog](http://keepachangelog.com/).


## Unreleased
---

### New

### Changes

### Fixes

### Breaks


## 1.5.0 - (2017-06-09)
---

### New
* add new feature x

### Breaks
* remove key feature y


## 1.4.1 - (2017-05-29)
---

### Changes
* updating documentation


...

Release files for changelog-cli 0.7.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for changelog-cli 0.7.1
File Size Uploaded
changelog-cli-0.7.1.tar.gz 5.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for changelog-cli 0.7.1
File Interpreter ABI Platform
changelog_cli-0.7.1-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 12.7 kB

Release files / changelog-cli-0.7.1.tar.gz

Download URL changelog-cli-0.7.1.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
332090b98c958e06486632a7967cdd6edf3896ade4171a21f83b768eac519170
BLAKE2b-256 checksum
How to use checksums
90812b8fc2b0e4a2905ac1dbe8a35aecb4ded71da9e8e460081d81ce5b5cfd1d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.3

Release files / changelog_cli-0.7.1-py2.py3-none-any.whl

Download URL changelog_cli-0.7.1-py2.py3-none-any.whl
Size 6.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
aaae0cfeb3681a4d7b10993f945dedf19c761b7582625f75a7abdd7272808f73
BLAKE2b-256 checksum
How to use checksums
df8d49fc1225c18f84ec9f7d729e318fbb2195405ca289a8afea8d423ffbb98a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.3

Release history Release notifications | RSS feed

This release

0.7.1 This release

2 release files

0.6.2

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.4

2 release files

0.5.3

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page