Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions pages/common/poetry-update.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# poetry update

> Update dependencies to their latest compatible versions and update the lock file.
> More information: <https://python-poetry.org/docs/cli/#update>.

- Update all dependencies to their latest compatible versions:

`poetry update`

- Update a specific package to its latest compatible version:

`poetry update {{package_name}}`

- Update multiple specific packages:

`poetry update {{package1}} {{package2}}`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
`poetry update {{package1}} {{package2}}`
`poetry update {{package1 package2 ...}}`


- Update all packages without updating the lock file:

`poetry update --lock`

- Update packages in dry-run mode (show what would be updated):

`poetry update --dry-run`

- Display help:

`poetry update --help`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
`poetry update --help`
`poetry update {{[-h|--help]}}`