cider 0.0.5
cider: ^0.0.5

Dart native
Flutter Android iOS

Tools for Dart package maintainers. Automates CHANGLELOG and pubspec.yaml updates.


Cider (CI for Dart. Efficient Release) #

A command-line utility to automate package maintenance. Manipulates the changelog and pubspec.yaml.

This tool assumes that the changelog:

  • is called
  • is sitting in the project root folder
  • strictly follows the Keep a Changelog v1.0.0 format
  • uses basic markdown (no HTML and complex formatting supported)

It also assumes that your project follows Semantic Versioning v2.0.0.

Install #

pub global activate cider

Configure #

The config file name is .cider.yaml. It should reside in the root folder of the project. This file is optional. So far it consists of just a single entry.

  diff_link_template: ''

The %from% and %to% placeholders will be replaced with the corresponding version tags.

Updating the changelog #

This command will add a new line to the Unreleased section of the changelog

cider log <type> <description>
  • type is one of: added, changed, deprecated, removed, fixed, security
  • description is a markdown text line


cider log change 'New turbo engine installed'
cider log add 'Support for rocket fuel and kerosene'
cider log fix 'No more wheels falling off'

Releasing the unreleased changes #

This command takes all changes from the Unreleased section on the changelog and creates a new release with the version from pubspec.yaml

cider release

Use --date to provide the release date (the default is today).

Cider will automatically generate the diff links in the changelog if the diff link template is found in the config.

Setting the project version #

cider version <new_version>
  • new_version must be semver-compatible
Version beforeCommandVersion after
1.2.3cider set
0.2.1cider set 0.0.1-dev0.0.1-dev

Bumping the project version #

cider bump <version>
  • version can be any of: breaking, major, minor, patch, build

Use --keep-build or -b to retain the build part of the version. Use --keep-pre-release or -r to retain the pre-release part of the version.

Use --print or -p to print the new version.

Version beforeCommandVersion after
1.2.3cider bump breaking2.0.0
0.2.1cider bump breaking0.3.0
0.2.1cider bump major1.0.0
0.2.1cider bump minor0.3.0
0.2.1cider bump patch0.2.2
0.2.1cider bump build0.2.1+1
0.2.1+42cider bump build0.2.1+43
0.2.1+foocider bump build0.2.1+foo.1
0.2.1+42.foocider bump bump

The cider bump build command is a bit tricky. It either increments the first numeric part of the build (if there is a numeric part) setting other numeric parts to zeroes, or appends .1 to the build (otherwise).

Retaining the build part:

Version beforeCommandVersion after
1.2.3+42cider bump breaking2.0.0
0.2.1+42cider bump breaking -b0.3.0+42
0.2.1+42cider bump patch0.2.2
0.2.1+42cider bump patch -b0.2.2+42

Setting the version explicitly #

cider version <new_version>
  • new_version is any arbitrary version


cider version 3.0.0
cider version 1.2.0-nullsafety+42

Printing the current project version #

cider version

Printing the list of changes in the given version #

cider describe <version>
  • version is an existing version from the changelog
pub points


Tools for Dart package maintainers. Automates CHANGLELOG and pubspec.yaml updates.

Repository (GitHub)
View/report issues


API reference




args, change, intl, markdown, marker, maybe_just_nothing, path, pub_semver, version_manipulation, yaml, yaml_edit


Packages that depend on cider