Create a sandbox
The TypeScript SDK adds camelCase aliases (
milliCpu, memMb, createdAt)
alongside the raw API fields, so either spelling works.
Run a command
/bin/sh -c, so pipes and && work. Pass an
array instead to execute a program directly without a shell:
exitCode yourself —
only transport and API failures raise RunCloudError. Exec requires the sandbox
to be running; a paused sandbox returns 409.
List and inspect
Destroy
try/finally so
a thrown error still tears the sandbox down: