pub_version_plus 1.0.0
pub_version_plus: ^1.0.0 copied to clipboard
Easily increment version numbers in pubspec.yaml files with a single command.
A command-line tool for easily incrementing pubspec.yaml version numbers.
Installation #
$ pub global activate pubversion
# or
$ flutter pub global activate pubversion
Learn more about activating and using packages here.
Usage #
pubversion provides three commands:
majorminorpatchbuild
pubversion major #
$ pubversion major
test_package upgraded from 1.2.1 to 2.0.0
// with build number
test_package upgraded from 1.2.1+2 to 2.0.0+0
pubversion minor #
$ pubversion minor
test_package upgraded from 1.0.1 to 1.1.0
// with build number
test_package upgraded from 1.2.1+3 to 1.1.0+0
pubversion patch #
$ pubversion patch
test_package upgraded from 1.0.0 to 1.0.1
// with build number
test_package upgraded from 1.0.0+4 to 1.0.1+0
pubversion build #
$ pubversion build
test_package upgraded from 1.0.0+4 to 1.0.0+5