commands.sh

poetry-self

all

Manage the Poetry installation/runtime environment itself. These commands reference `pyproject.toml` and `poetry.lock` files in your Poetry configuration directory. See also: `asdf`.

More info →

Examples (8)

Install a package

poetry self add package_name

Install dependencies from the Poetry installation's `pyproject.toml` file

Lock dependencies from the Poetry installation's `pyproject.toml` file

Remove a package

poetry self remove package_name

List all installed packages

List all installed plugins

poetry self show plugins

Sync the runtime environment with the Poetry installation's `poetry.lock` file

Update dependencies from the Poetry installation's `pyproject.toml` file

made by @shridhargupta | data from tldr-pages