commands.sh

poetry-env

all

Manage virtual environments associated with a Poetry project. See also: `asdf`.

More info →

Options (2)

-p, --pathboolean

Display the path of the current environment

Example: poetry env info {{[-p|--path]}}
-e, --executableboolean

Display the path of the current environment's Python executable

Example: poetry env info {{[-e|--executable]}}

Examples (7)

Print the command to activate a virtual environment

poetry env activate

Display information about the current environment

Display the path of the current environment

poetry env info [-p|--path]

Display the path of the current environment's Python executable

poetry env info [-e|--executable]

List all virtual environments associated with the current project (optionally showing the full path)

poetry env list --full-path

Remove specific or all virtual environments associated with the current project

poetry env remove python path/to/executable|environment_name | poetry env remove --all

Activate or create a virtual environment for the project using the specified Python executable

poetry env use python path/to/executable
made by @shridhargupta | data from tldr-pages