Run a shell command
Runs cmd inside the sandbox via a shell, so pipes, &&, redirects, and
installed CLI tools all work. Sandbox must be in status ready.
Pass stream: true to receive stdout / stderr as they arrive. The
response then uses Content-Type: application/x-ndjson with one JSON
frame per line; the final frame is { "type": "done", ... }. See
ExecStreamFrame for the frame shape.
Authorizations
Your account-level Brimble API key. Find it in the dashboard under your profile drawer → API key (click the avatar in the sidebar). Available on paid plans only.
Path Parameters
24-char hex id of the sandbox.
^[a-f0-9]{24}$Body
Shell command to run. Pipes / && / redirects all work.
Defaults to 30. Process is killed at the limit.
1 <= x <= 300Absolute path inside the sandbox. Defaults to /.
Extra environment variables for this command only. Layered on top of the sandbox's existing environment; same-named keys here override the sandbox-level ones for this call. Values must be strings. Scoped to a single invocation, the next call starts with the sandbox defaults again.
{
"NODE_ENV": "production",
"DATABASE_URL": "postgres://..."
}When true, the server keeps the connection open and streams
stdout/stderr chunks as NDJSON (application/x-ndjson) instead of
buffering. The last frame is always { "type": "done", ... }.