Files
cheatsheet-tldr/tldr/poetry-lock
2025-09-28 00:21:14 +00:00

19 lines
413 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# 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`