mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-06 02:44:36 +00:00
26 lines
562 B
Plaintext
26 lines
562 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# bun pm version
|
|
|
|
> Manage the `version` field in `package.json`.
|
|
> More information: <https://bun.com/docs/pm/cli/pm#version>.
|
|
|
|
- Display the current package version:
|
|
|
|
`bun pm version`
|
|
|
|
- Set a specific version:
|
|
|
|
`bun pm version {{9.0.1}}`
|
|
|
|
- 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:
|
|
|
|
`bun pm version from-git`
|