1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-11 00:05:24 +02:00
tldr/pages/common/uv-version.md
Meinard Francisco edbed8ce00
uv-{help,lock,pip,remove,run,sync,venv,version}: add pages (#16875)
Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
2025-06-18 11:23:49 +03:00

634 B

uv version

Read or update a project's version. More information: https://docs.astral.sh/uv/reference/cli/#uv-version.

  • Display the current project version:

uv version

  • Set the project version to a specific value:

uv version {{1.2.3}}

  • Bump the project version using semantic versioning:

uv version --bump {{major|minor|patch}}

  • Preview version changes without writing to pyproject.toml:

uv version --bump {{patch}} --dry-run

  • Update version for a specific package in a workspace:

uv version --package {{package_name}} {{1.2.3}}

  • Display version in JSON format:

uv version --output-format json