pinset2.1
中文
Query and lifecycle commands

pinset exec

Run a child command with Pinset's selected runtimes and environment without relying on direct shell routing.

View source on GitHub
FieldDescription
PurposeRun a child command with Pinset's selected runtimes and environment without relying on direct shell routing.
Syntax and argumentspinset exec [--cwd <path>] -- <command> [args...]. An optional exact tool selection may lead the child command, for example pinset exec node@22.0.0 -- node -v.
Modifies statePinset state: No. The launched program may modify its own files or external state.
Examplepinset exec -- node ./scripts/build.js
JSONNo; child stdout/stderr remains unwrapped.
ExitExact child exit code after launch; 2 if Pinset cannot resolve or launch it.
Key errorsMissing command, unresolved runtime, exact override not installed, shim recursion protection, or process launch failure.
/en/docs/commands/execPinset 2.1