mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-09 14:46:32 +00:00
34 lines
713 B
Plaintext
34 lines
713 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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 update`
|
|
|
|
- Update one or more specific packages:
|
|
|
|
`poetry update {{package1 package2 ...}}`
|
|
|
|
- Update the lock file only, without installing the packages:
|
|
|
|
`poetry update --lock`
|
|
|
|
- Synchronize the environment with the locked packages:
|
|
|
|
`poetry update --sync`
|
|
|
|
- Update dependencies only for a specific group:
|
|
|
|
`poetry update --only {{group_name}}`
|
|
|
|
- Simulate the update process without making changes:
|
|
|
|
`poetry update --dry-run`
|