-
Notifications
You must be signed in to change notification settings - Fork 704
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #6147 --------- Co-authored-by: Sigurd Meldgaard <[email protected]>
- Loading branch information
1 parent
910a3c8
commit a433611
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
title: dart pub bump | ||
description: Use dart pub bump to increase the version number of the current package. | ||
--- | ||
|
||
_Bump_ is one of the commands of the [pub tool](/tools/pub/cmd). | ||
|
||
```plaintext | ||
$ 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](https://semver.org/spec/v2.0.0-rc.1.html) for guidance on versioning your package. | ||
For example: | ||
|
||
```console | ||
$ 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](/tools/pub/cmd#global-options). | ||
|
||
### `-n, --dry-run` | ||
|
||
Reports what would change for the version number under each subcommand, | ||
and shows the version diff, without changing anything. |