spawnProcess
spawnProcess(
command,args?,options?):Promise<ProcessResult>
Defined in: packages/node/src/process/spawn-process.ts:46
Runs a command to completion and returns what it printed.
The one-shot form of startProcess: no handle is exposed, so streaming
consumers pass onOutput instead of subscribing.
Parameters
Section titled “Parameters”command
Section titled “command”string
The executable to run.
readonly string[]
Arguments passed to it verbatim.
options?
Section titled “options?”Capture limits and everything StartProcessOptions accepts.
Returns
Section titled “Returns”Promise<ProcessResult>
The exit status and the captured streams.
Throws
Section titled “Throws”On a non-zero exit, unless
throwOnNonZero is false.
Throws
Section titled “Throws”When either stream exceeds maxBuffer.