1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-05 10:35:23 +02:00
tldr/pages/common/uv-sync.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

706 B

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 sync

  • Sync and include all optional dependencies:

uv sync --all-extras

  • Sync with specific optional dependencies:

uv sync --extra {{extra_name}}

  • Sync only development dependencies:

uv sync --only-dev

  • Sync excluding development dependencies:

uv sync --no-dev

  • Sync specific dependency groups:

uv sync --group {{group_name}}

  • Check if environment is already synchronized (no changes):

uv sync --check

  • Preview what would be synced without making changes:

uv sync --dry-run