1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-28 06:15:26 +02:00
tldr/pages/common/uv-lock.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

32 lines
723 B
Markdown

# uv lock
> Update the project's lockfile.
> More information: <https://docs.astral.sh/uv/reference/cli/#uv-lock>.
- Create or update the project's lockfile:
`uv lock`
- Check if the lockfile is up-to-date without updating it:
`uv lock --check`
- Assert that a lockfile exists without checking if it's current:
`uv lock --check-exists`
- Preview what would be locked without writing the lockfile:
`uv lock --dry-run`
- Lock a specific Python script instead of the current project:
`uv lock --script {{path/to/script.py}}`
- Upgrade all packages to their latest compatible versions:
`uv lock --upgrade`
- Upgrade only specific packages:
`uv lock --upgrade-package {{package1}} --upgrade-package {{package2}}`