pubspec_version_tool 1.0.0 copy "pubspec_version_tool: ^1.0.0" to clipboard
pubspec_version_tool: ^1.0.0 copied to clipboard

A Dart CLI to manage and update the version in pubspec.yaml

Introduction #

A Dart CLI to manage and update the version in pubspec.yaml, primarily used to automate version increments and management in CI/CD workflows.

Usage #

Get the version #

Retrieve the version from pubspec.yaml.

dart run pubspec_version_tool get

Retrieve only the version name (before the dash):

dart run pubspec_version_tool get --only-version-name

Retrieve only the build number (after the dash):

dart run pubspec_version_tool get --only-build-number

Set the version #

Update the version in pubspec.yaml.

dart run pubspec_version_tool set 1.0.0-42
0
likes
150
points
214
downloads

Publisher

verified publisherttangkong.dev

Weekly Downloads

A Dart CLI to manage and update the version in pubspec.yaml

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

args, yaml, yaml_magic

More

Packages that depend on pubspec_version_tool