pubspec_version 0.2.0 copy "pubspec_version: ^0.2.0" to clipboard
pubspec_version: ^0.2.0 copied to clipboard

discontinuedreplaced by: cider
outdated

A CLI tool to set/bump the package version in pubspec.yaml. Think of "npm version" for Dart.

pubver #

CLI tool to set/bump the version key in pubspec.yaml. Semver-compliant*.

Installing #

You can install the package from the command line:

pub global activate pubspec_version

This will add the pubver binary to your ~/.pub-cache/bin.

Usage #

Bumping the version #

pubver bump <part>

where <part> can be either breaking, major, minor or patch.

Examples

Before Command After
1.2.3 pubver bump breaking 2.0.0
0.2.1 pubver bump breaking 0.3.0
0.2.1 pubver bump major 1.0.0
0.2.1 pubver bump minor 0.3.0
0.2.1 pubver bump patch 0.2.1

Setting the version #

pubver set <version>

where <version> can be any arbitrary version.

Output #

The tool prints the new version to stdout. This allows post processing, e.g. making a git commit.

git ci . -m "Release $(pubver bump breaking)"

*almost. It uses pub_semver which is a bit different.

9
likes
0
pub points
7%
popularity

Publisher

verified publisherkarapetov.com

A CLI tool to set/bump the package version in pubspec.yaml. Think of "npm version" for Dart.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

args, pub_semver, pubspec

More

Packages that depend on pubspec_version