snippetbashTip
poetry-self — Manage the Poetry installation/runtime environment itself. These commands reference `pyproject.toml`
Viewed 0 times
thecommandpoetry-selfinstallationruntimepoetryclimanage
Problem
How to use the
poetry-self command: 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 information: <https://python-poetry.org/docs/cli/#self>.Solution
poetry-self — 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 information: <https://python-poetry.org/docs/cli/#self>.Install a package:
poetry self add {{package_name}}Install dependencies from the Poetry installation's
pyproject.toml file:poetry self installLock dependencies from the Poetry installation's
pyproject.toml file:poetry self lockRemove a package:
poetry self remove {{package_name}}List all installed packages:
poetry self showList all installed plugins:
poetry self show pluginsSync the runtime environment with the Poetry installation's
poetry.lock file:poetry self syncUpdate dependencies from the Poetry installation's
pyproject.toml file:poetry self updateCode Snippets
Install a package
poetry self add {{package_name}}Install dependencies from the Poetry installation's `pyproject.toml` file
poetry self installLock dependencies from the Poetry installation's `pyproject.toml` file
poetry self lockRemove a package
poetry self remove {{package_name}}List all installed packages
poetry self showContext
tldr-pages: common/poetry-self
Revisions (0)
No revisions yet.