Skip to content
OpenRelay is in early access, and the /v1 API is stable. New capabilities ship in the changelog.
Skip to Content
CLICommands

orl sandbox exec

Run a command in a sandbox; its output streams and its exit code is this command's, part of the orl CLI for OpenRelay GPU VMs, pods, batches and billing.

orl sandbox exec <sandbox-id> [--] <command...>

Run a command in a sandbox; its output streams and its exit code is this command's. Several words are one argv, so put -- before a command with flags of its own: orl sandbox exec <id> -- sh -c 'exit 3' A single quoted word is a shell line: orl sandbox exec <id> 'make && make test'

Flags

FlagTypeRequired
--cwdstringnothe working directory
--envstringSlicenoNAME=VALUE (repeatable)
--exec-idstringnoname the exec; running this command again with it reattaches instead of starting another
--timeoutintnoseconds until the command is stopped

This wraps the execSandbox API operation.

On this page