Run sandbox command

runSandboxCommand(sandboxId: ID!, input: SandboxCommandInput!): SandboxCommandResult!

Requires project.sandboxes.manage.

Arguments

ArgumentTypeRequired
sandboxIdID!Yes
inputSandboxCommandInput!Yes

Input fields

input

SandboxCommandInput

FieldTypeRequired
commandString!Yes
cwdStringNo
timeoutSecondsIntNo
envStringMapNo

Response

Returns SandboxCommandResult!. Open the type for its fields and nested types.

FieldType
stdoutString!
stderrString!
exitCodeInt!

Types marked with ! cannot be null. Lists use [Type] notation. The type index lists all published input and response types.

Example

graphql
mutation RunSandboxCommand($sandboxId: ID!, $input: SandboxCommandInput!) {
  runSandboxCommand(sandboxId: $sandboxId, input: $input) {
    stdout
    stderr
    exitCode
  }
}
json
{
  "sandboxId": "00000000-0000-4000-8000-000000000001",
  "input": {
    "command": "example"
  }
}