commands.sh

bun pm version

all

Manage the `version` field in `package.json`.

More info →

Examples (4)

Display the current package version

Set a specific version

Bump the version using a semantic version type (`major`, `minor`, `patch`, etc.)

bun pm version major|minor|patch|premajor|preminor|prepatch|prerelease

Set the version based on Git tags

made by @shridhargupta | data from tldr-pages