snippetbashTip
poetry sync — Syncs your project's environment with the `poetry.lock` file. More information: <https://python-poet
Viewed 0 times
commandpoetry syncsyncsclienvironmentwithyourproject
Problem
How to use the
poetry sync command: Syncs your project's environment with the poetry.lock file. More information: <https://python-poetry.org/docs/cli/#sync>.Solution
poetry sync — Syncs your project's environment with the poetry.lock file. More information: <https://python-poetry.org/docs/cli/#sync>.Sync your project's environment with the
poetry.lock file:poetry syncExclude one or more dependency groups for the installation:
poetry sync --without {{test|docs|...}}Select optional dependency groups:
poetry sync --with {{test|docs|...}}Install all dependency groups including optional groups:
poetry sync --all-groupsInstall specific dependency groups:
poetry sync --only {{test|docs|...}}Install project without dependencies:
poetry sync --only-rootSpecify extras to install:
poetry sync {{[-E|--extras]}}Skip the defaulted package installation for your project:
poetry sync --no-rootCode Snippets
Sync your project's environment with the `poetry.lock` file
poetry syncExclude one or more dependency groups for the installation
poetry sync --without {{test|docs|...}}Select optional dependency groups
poetry sync --with {{test|docs|...}}Install all dependency groups including optional groups
poetry sync --all-groupsInstall specific dependency groups
poetry sync --only {{test|docs|...}}Context
tldr-pages: common/poetry sync
Revisions (0)
No revisions yet.