How to find the list of available versions for an specific package with Poetry?

Viewed 6619
2 Answers

It won't show all versions available, but if you want to see the latest version of a given package available for install using Poetry, you can use a combination of the @latest version qualifier and --dry-run option of poetry add, as follows:

poetry add <package>@latest --dry-run

This will output the version of the package (and dependent packages) available, but will not execute anything.

To display the current and the latest version of the packages installed in your virtual env, just run the command:

poetry show --latest

But the show-command has special param for checking the outdated packages only:

poetry show --outdated
Related