LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

poetry-update

Update project dependencies

TLDR

Update all dependencies
$ poetry update
copy
Update specific packages
$ poetry update [package1] [package2]
copy
Preview updates without installing
$ poetry update --dry-run
copy
Update without dev dependencies
$ poetry update --without dev
copy
Only update the lock file, don't install
$ poetry update --lock
copy

SYNOPSIS

poetry update [packages...] [options]

DESCRIPTION

poetry update resolves dependencies to their latest versions allowed by the constraints in pyproject.toml, updates the poetry.lock file, and installs the new versions. When specific packages are given, only those packages and their dependencies are updated. Without arguments, all dependencies are updated.

PARAMETERS

--dry-run

Preview updates without installing.
--no-dev
Skip dev dependencies (deprecated, use --without dev).
--with groups
Include optional dependency groups.
--without groups
Exclude dependency groups.
--only groups
Only update the specified dependency groups.
--lock
Only update the lock file, don't install packages.
--sync
Synchronize the environment by removing packages not in the lock file.
-v, -vv, -vvv
Increase verbosity.

SEE ALSO

Copied to clipboard
Kai