Run a command
Runs a shell command line as zsh -lc in the sandbox, as the slot’s macOS user. The answer comes within about 50 s whatever the command does: 200 with the result if it ended by then, else 202 with a commandId to follow with getCommand. A non-zero exit is still 200, so check exitCode; on a pending sandbox the command first waits up to 30 s for a slot. Starting a command is not idempotent.
Authorizations
Body
Unknown fields are refused with 400 unknown-field.
10 minutes by default. Never past the sandbox's own end: the plane cuts it to what is left of the sandbox's life when the Mac takes the command, so lengthening the sandbox while the command waits for a place lengthens it too. A command already running keeps the end it started with. At the timeout the command's whole process tree is killed and the result has timedOut: true.
1 <= x <= 1800000Response
The command ended within the hold.
A command that ended. The fields after state are the Mac's own answer, relayed as it sent them.