Sandboxes
Run a command inside the sandbox (`@vercel/sandbox`-compatible).
wait=false (default) returns { command: {..., exitCode: null} } immediately once the background task is spawned.
wait=true streams application/x-ndjson: the first line is the running envelope, the second is the finished envelope with exitCode.
post/v1/sandboxes/{id}/cmd
Request
- Base URL: /api (relative, and the document was published on a file host, not at the API’s origin)
- URL: /api/v1/sandboxes/{id}/cmd
- Auth: HTTP bearer
Path parameters
idstring required
Request body
Response
Command started (wait=false) or finished (wait=true)
Changes
No recorded changes to this operation across all 50 revisions of this API.