poetry
Manage Python packages and dependencies. Some subcommands such as `about`, `check`, `env`, etc. have their own usage documentation. See also: `asdf`, `pipenv`, `hatch`.
More info →Subcommands (27)
Get information about Poetry, an application to manage Python packages and dependencies. See also: `asdf`.
Add required packages to the `pyproject.toml` file in Poetry. See also: `asdf`.
Build a Poetry package as a tarball and a wheel.
Manage Poetry's cache. See also: `asdf`.
Manage Poetry file validation and consistency. See also: `asdf`.
Edit poetry config settings and repositories.
Debug issues with your Poetry project. See also: `asdf`.
Manage virtual environments associated with a Poetry project. See also: `asdf`.
Export Poetry's lock file to other formats. Provided by the Export Poetry Plugin.
Display global help, or help for a specific `poetry` command.
Create a basic `pyproject.toml` file interactively.
Install all dependencies for a Python project as defined in the pyproject.toml file.
List available Poetry commands. See also: `asdf`.
Lock dependencies in `pyproject.toml` (without installing them). See also: `asdf`.
Create a new Poetry project in a specific directory.
Publish a package to a remote repository.
Manage Python versions through Poetry. See also: `asdf`.
Remove a package from the project dependencies.
Run a command in the project's virtual environment.
Search for packages on a remote index. Note: PyPI no longer supports searching via the command-line, so this command may fail on the default repository.
Manage the Poetry installation/runtime environment itself. These commands reference `pyproject.toml` and `poetry.lock` files in your Poetry configuration directory. See also: `asdf`.
Spawn a shell within the virtual environment. Note: The `shell` command was moved to a plugin: `poetry-plugin-shell`.
Show details of packages in your Poetry project. See also: `asdf`.
Add source configurations to your Poetry project. See also: `asdf`.
Syncs your project's environment with the `poetry.lock` file.
Update the dependencies as according to the `pyproject.toml` file.
Manage Poetry project version. Assumes the following project stages: `patch`, `minor`, `major`, `prepatch`, `preminor`, `premajor`, `prerelease`. See also: `asdf`.
Examples (8)
Create a new Poetry project in the directory with a specific name
poetry new project_nameInstall and add a dependency and its sub-dependencies to the `pyproject.toml` file in the current directory
poetry add dependencyInstall the project dependencies using the `pyproject.toml` file in the current directory
Interactively (append `-n` for non-interactively) initialize the current directory as a new Poetry project
Get the latest version of all dependencies and update `poetry.lock`
Execute a command inside the project's virtual environment
Bump the version of the project in `pyproject.toml`
poetry version patch|minor|major|prepatch|preminor|premajor|prerelease