uv-lock
Update the project's lockfile. tldr-pages
On several platforms
Several platforms
Create or update the project's lockfile
uv lockIdentifyCheck if the lockfile is up-to-date without updating it
uv lock --checkIdentifyAssert that a lockfile exists without checking if it's current
uv lock --check-existsIdentifySimulate locking, showing what would be locked without writing the lockfile
uv lock --dry-runIdentifyLock a specific Python script instead of the current project
uv lock --script path/to/script.pyIdentifyUpgrade all packages to their latest compatible versions
uv lock --upgradeIdentifyUpgrade only specific packages
uv lock --upgrade-package package1 --upgrade-package package2Identify