Extend the reference documentation for uv pip sync (#12683)

See https://github.com/astral-sh/uv/issues/12680
This commit is contained in:
Zanie Blue
2025-04-07 17:40:26 -05:00
committed by GitHub
parent a0f5c7250b
commit 8ea34b56a1
2 changed files with 13 additions and 1 deletions
+5 -1
View File
@@ -6111,7 +6111,11 @@ uv pip compile [OPTIONS] <SRC_FILE|--group <GROUP>>
### uv pip sync
Sync an environment with a `requirements.txt` file
Sync an environment with a `requirements.txt` file.
When syncing an environment, any packages not listed in the `requirements.txt` file will be removed. To retain extraneous packages, use `uv pip install` instead.
The `requirements.txt` file is presumed to be the output of a `pip compile` or `uv export` operation, in which it will include all transitive dependencies. If transitive dependencies are not present in the file, they will not be installed. Use `--strict` to warn if any transitive dependencies are missing.
<h3 class="cli-reference">Usage</h3>