Skip to content
Latchkey

poetry update: Upgrade Within Constraints

Move dependencies to the latest versions your constraints allow.

poetry update re-resolves dependencies to the newest versions permitted by pyproject.toml and rewrites poetry.lock. It does not change the constraints themselves.

What it does

Updates dependencies (all, or only the ones you name) to the latest compatible versions and updates the lockfile. Constraints in pyproject.toml are respected, not loosened.

Common usage

Terminal
poetry update
poetry update requests
poetry update --dry-run
poetry update --with dev

Common CI gotcha: unexpected lock churn

A bare poetry update can bump many transitive packages at once, surprising a pinned CI build. Preview with --dry-run, or update only the package you intend to.

Terminal
# See what would change first:
poetry update --dry-run

# Then update just one:
poetry update requests

Related guides

Run this faster and cheaper on Latchkey managed runners. Start free →