snippetbashTip
poetry lock — Lock dependencies in `pyproject.toml` (without installing them). See also: `asdf`. More information:
Viewed 0 times
commandpyprojectdependencieswithoutclipoetry locktomllock
Problem
How to use the
poetry lock command: Lock dependencies in pyproject.toml (without installing them). See also: asdf. More information: <https://python-poetry.org/docs/cli/#lock>.Solution
poetry lock — Lock dependencies in pyproject.toml (without installing them). See also: asdf. More information: <https://python-poetry.org/docs/cli/#lock>.Lock dependencies from the current directory's
pyproject.toml file:poetry lockRegenerate the existing lock file:
poetry lock --regenerateCode Snippets
Lock dependencies from the current directory's `pyproject.toml` file
poetry lockRegenerate the existing lock file
poetry lock --regenerateContext
tldr-pages: common/poetry lock
Revisions (0)
No revisions yet.