snippetbashTip
uv sync — Update the project's environment to match the lockfile. More information: <https://docs.astral.sh/uv
Viewed 0 times
thematchcommandupdateuv syncclienvironmentproject
Problem
How to use the
uv sync command: Update the project's environment to match the lockfile. More information: <https://docs.astral.sh/uv/reference/cli/#uv-sync>.Solution
uv sync — Update the project's environment to match the lockfile. More information: <https://docs.astral.sh/uv/reference/cli/#uv-sync>.Sync the project environment with the lockfile:
uv syncSync and include all optional dependencies:
uv sync --all-extrasSync with specific optional dependencies:
uv sync --extra {{extra_name}}Sync only development dependencies:
uv sync --only-devSync excluding development dependencies:
uv sync --no-devSync specific dependency groups:
uv sync --group {{group_name}}Check if environment is already synchronized (no changes):
uv sync --checkPreview what would be synced without making changes:
uv sync --dry-runCode Snippets
Sync the project environment with the lockfile
uv syncSync and include all optional dependencies
uv sync --all-extrasSync with specific optional dependencies
uv sync --extra {{extra_name}}Sync only development dependencies
uv sync --only-devSync excluding development dependencies
uv sync --no-devContext
tldr-pages: common/uv sync
Revisions (0)
No revisions yet.