pubspec_version 0.1.0

  • Installing
  • Versions
  • new52


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


Bumping the version

Run pub run pubspec_version:bump <part> to increment the version. <part> can be either breaking, major, minor, or patch.

E.g. if the current package version is 1.2.3, running pub run pubspec_version:bump minor will set it to 1.3.0.

Setting the version

Run pub run pubspec_version:set <version> to set the version to <version>.


  • -d <pubspec_directory> provides the path to the directory containing pubspec.yaml. Defaults to the current directory.
  • -c also does git commit . 'Release <version>' and git tag <version>. Think of npm version for Dart.


The tool prints the new version to stdout.

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


All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.


0.1.0 - 2018-10-05


  • Binary names

0.0.2 - 2018-10-04


  • Removed double await statement (#1)

0.0.1 - 2018-10-03


  • Initial version

Use this package as an executable

1. Install it

You can install the package from the command line:

$ pub global activate pubspec_version

2. Use it

The package has the following executables:

$ bump
$ set

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  pubspec_version: ^0.1.0

2. Install it

You can install packages from the command line:

with pub:

$ pub get

Alternatively, your editor might support pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:pubspec_version/pubspec_version.dart';
Version Uploaded Documentation Archive
0.1.0 Oct 6, 2018 Go to the documentation of pubspec_version 0.1.0 Download pubspec_version 0.1.0 archive
0.0.2 Oct 4, 2018 Go to the documentation of pubspec_version 0.0.2 Download pubspec_version 0.0.2 archive
0.0.1 Oct 4, 2018 Go to the documentation of pubspec_version 0.0.1 Download pubspec_version 0.0.1 archive
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Oct 10, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0
  • pana: 0.12.4


Detected platforms: other

Primary library: package:pubspec_version/pubspec_version.dart with components: io, mirrors.

Maintenance suggestions

Maintain an example.

None of the files in your example/ directory matches a known example patterns. Common file name patterns include: main.dart, example.dart or you could also use pubspec_version.dart.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
args ^1.5.0 1.5.0
pub_semver ^1.4.2 1.4.2
pubspec ^0.1.0 0.1.1
Transitive dependencies
charcode 1.1.2
collection 1.14.11
matcher 0.12.4
meta 1.1.6
path 1.6.2
quiver 2.0.0+1
source_span 1.4.1
stack_trace 1.9.3
string_scanner 1.0.4
stuff 0.1.0
uri 0.11.3+1
utf 0.9.0+5
yaml 2.1.15
yamlicious 0.1.0
Dev dependencies
mockito ^3.0.0
test ^1.0.0