pinset2.1
中文
Query and lifecycle commands

pinset prune

Remove installed versions not protected by global or supplied project selections.

View source on GitHub
FieldDescription
PurposeRemove installed versions not protected by global or supplied project selections.
Syntax and argumentspinset prune [--cwd <path>] [--project <path>]... [--dry-run] [--json].
Modifies stateYes, unless --dry-run.
Examplepinset prune --project ./app --project ../service --dry-run
JSONYes; command name prune.
Exit0 for a completed plan/removal; 2 if references or ownership cannot be validated.
Key errorsInvalid project lock, unsafe installation path, missing receipt, or filesystem failure.
/en/docs/commands/prunePinset 2.1