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 ↗| Field | Description |
|---|---|
| Purpose | Run a child command with Pinset's selected runtimes and environment without relying on direct shell routing. |
| Syntax and arguments | pinset 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 state | Pinset state: No. The launched program may modify its own files or external state. |
| Example | pinset exec -- node ./scripts/build.js |
| JSON | No; child stdout/stderr remains unwrapped. |
| Exit | Exact child exit code after launch; 2 if Pinset cannot resolve or launch it. |
| Key errors | Missing command, unresolved runtime, exact override not installed, shim recursion protection, or process launch failure. |
/en/docs/commands/execPinset 2.1