HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

poetry lock — Lock dependencies in `pyproject.toml` (without installing them). See also: `asdf`. More information:

Submitted by: @import:tldr-pages··
0
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 lock


Regenerate the existing lock file:
poetry lock --regenerate

Code Snippets

Lock dependencies from the current directory's `pyproject.toml` file

poetry lock

Regenerate the existing lock file

poetry lock --regenerate

Context

tldr-pages: common/poetry lock

Revisions (0)

No revisions yet.