Skip to content

Commit 913d9a9

Browse files
abdullahmujahidaliradoering
authored andcommitted
docs: mention poetry sync for reproducible installs and clarify constraints
1 parent 5866f5e commit 913d9a9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/cli.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,8 +478,9 @@ resolves the dependencies, and installs them.
478478
{{% note %}}
479479
**When to use `install` vs `update`:**
480480
- Use `poetry install` to install dependencies as specified in `poetry.lock` (or resolve dependencies and create the lock file if it's missing).
481-
This is what you run after cloning a project or when you want reproducible installs.
482-
- Use `poetry update` when you want to update dependencies to their latest versions (within constraints)
481+
This is what you run after cloning a project. For reproducible installs, prefer `poetry sync`,
482+
which also removes packages that are not in the lock file.
483+
- Use `poetry update` when you want to update dependencies to their latest versions (within the constraints from the `pyproject.toml`)
483484
and refresh `poetry.lock`.
484485
{{% /note %}}
485486

0 commit comments

Comments
 (0)