Subcommands39 subcommands
poetry about
Shows information about poetry
poetry add
Adds a new dependency to pyproject.toml
poetry build
Builds a package, as a tarball and a wheel by default
poetry cache
The cache command regroups sub commands to interact with poetry's cache
poetry cache clear
Clears a poetry cache by name
poetry cache list
List poetry's caches
poetry check
Checks the validity of the pyproject.toml file
poetry config
Manages configuration settings
poetry debug
The debug command regroups sub commands to interact with debug session
poetry debug info
Shows debug information
poetry debug resolve
Debugs dependency resolution
poetry env
The env command regroups sub commands to interact with the virtualenvs associated with a specific project
poetry env info
Displays information about the current environment
poetry env list
Lists all virtualenvs associated with the current project
poetry env remove
Remove virtual environments associated with the project
poetry env use
Activates or creates a new virtualenv for the current project
poetry init
Creates a basic pyproject.toml file in the current directory
poetry install
Installs the project dependencies
poetry lock
Locks the project dependencies
poetry new
Creates a new Python project at <path>
poetry publish
Publishes a package to a remote repository
poetry remove
Removes a package from the project dependencies
poetry run
Runs a command in the appropriate environment
poetry search
Searches for packages on remote repositories
poetry self
The self namespace regroups sub commands to manage the poetry installation itself
poetry self add
Add additional packages to poetry's runtime environment
poetry self install
Install locked packages (incl. addons) required by this poetry installation
poetry self lock
Lock the poetry installation's system requirements
poetry self remove
Remove additional packages from poetry's runtime environment
poetry self show
Show packages from poetry's runtime environment
poetry self update
Updates poetry to the latest version
poetry shell
Spawns a shell within the virtual environment
poetry show
Shows information about packages
poetry source
The source namespace regroups sub commands to manage repository sources for a poetry project
poetry source add
Add source configuration for project
poetry source remove
Remove source configured for the project
poetry source show
Show information about sources configured for the project
poetry update
Update the dependencies as according to the pyproject.toml file
poetry version
Shows the version of the project or bumps it when a valid bump rule is provided
OptionsOn poetry itself
-h--help
Display help information
-v--verbose
Increase the verbosity of messages
-V--version
Display this application version
--no-ansi
Disable ANSI output
-n--no-interaction
Do not ask any interactive question
--no-plugins
Disables plugins
--no-cache
Disables poetry source caches
--directory
The working directory for the poetry command <directory>
-q--quiet
Do not output any message