Skip to main content

Manage Python packages and dependencies.

# To create a new Poetry project in the directory with a specific name:
poetry new <project_name>

# To install a dependency and its subdependencies:
poetry add <dependency>

# To interactively initialize the current directory as a new Poetry project:
poetry init

# To get the latest version of all dependencies and update poetry.lock:
poetry update

# To execute a command inside the project's virtual environment:
poetry run <command>