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: text/event-stream with one JSON
object per data: line; the final event is { "type": "done", ... }.
See ExecStreamFrame for the event 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.
When true, the server keeps the connection open and streams
stdout/stderr as Server-Sent Events (text/event-stream). Each event
is a JSON object on a data: line; the last event is always
{ "type": "done", ... } or { "type": "error", ... }.