dart pub bump
Bump is one of the commands of the pub tool.
$ dart pub bump <subcommand> [options]
This command increments the version number of the current package.
Use one of the subcommands breaking
, major
, minor
,
or patch
according to the type of increment desired.
Refer to semver for guidance on versioning your package. For example:
$ dart pub bump minor
Updating version from 1.0.0 to 1.1.0
Diff:
- version: 1.0.0
+ version: 1.1.0
Remember to update `CHANGELOG.md` before publishing.
Options
#For options that apply to all pub commands, see Global options.
-n, --dry-run
#除非另有说明,文档之所提及适用于 Dart 3.6.0 版本,本页面最后更新时间: 2024-11-11。 查看文档源码 或者 报告页面问题。