snippetbashTip
poetry update — Update the dependencies as according to the `pyproject.toml` file. More information: <https://python
Viewed 0 times
theaccordingcommandupdatedependenciesclipoetry update
Problem
How to use the
poetry update command: Update the dependencies as according to the pyproject.toml file. More information: <https://python-poetry.org/docs/cli/#update>.Solution
poetry update — Update the dependencies as according to the pyproject.toml file. More information: <https://python-poetry.org/docs/cli/#update>.Update all dependencies:
poetry updateUpdate one or more specific packages:
poetry update {{package1 package2 ...}}Update the lock file only, without installing the packages:
poetry update --lockSynchronize the environment with the locked packages:
poetry update --syncUpdate dependencies only for a specific group:
poetry update --only {{group_name}}Simulate the update process without making changes:
poetry update --dry-runCode Snippets
Update all dependencies
poetry updateUpdate one or more specific packages
poetry update {{package1 package2 ...}}Update the lock file only, without installing the packages
poetry update --lockSynchronize the environment with the locked packages
poetry update --syncUpdate dependencies only for a specific group
poetry update --only {{group_name}}Context
tldr-pages: common/poetry update
Revisions (0)
No revisions yet.