pinset2.1
中文
Project and selection commands

pinset use

Resolve and lock one or more runtimes for the nearest project, or for global scope.

View source on GitHub
FieldDescription
PurposeResolve and lock one or more runtimes for the nearest project, or for global scope.
Syntax and argumentspinset use <tool>@<selector>... [--no-install] [--global]. At least one selection is required and a Provider may appear only once.
Modifies stateYes. Resolves every selection before one scope config/lock update, preserves unmentioned selections, then performs one dependency-ordered locked installation pass unless --no-install is used.
Examplepinset use java@lts dotnet@lts flutter@latest
JSONNo.
Exit0 success; 2 on Pinset failure.
Key errorsMissing project config, duplicate Provider, invalid selector, metadata/signature, dependency or project-policy failure, unsupported platform, or installation failure. A pre-commit failure changes no selection; an installation failure retains the complete new lock and reports the locked-install retry command.
/en/docs/commands/usePinset 2.1