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 ↗| Field | Description |
|---|---|
| Purpose | Resolve and lock one or more runtimes for the nearest project, or for global scope. |
| Syntax and arguments | pinset use <tool>@<selector>... [--no-install] [--global]. At least one selection is required and a Provider may appear only once. |
| Modifies state | Yes. 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. |
| Example | pinset use java@lts dotnet@lts flutter@latest |
| JSON | No. |
| Exit | 0 success; 2 on Pinset failure. |
| Key errors | Missing 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