Skip to main content
Run a shell command in a runtime and read its stdout and exit code. Use the same call to install a package, run a script, or start a process you attach to later.
Installing a package needs a network policy. See Install a package. For an interactive shell, use SSH.

Run a shell command

Arguments, packages, scripts, and environment variables

Stream command output

Read stdout and stderr while a command is running

Run in the background

Start a command and attach to it later

SSH

Open an interactive shell, then revoke it

Endpoint

POST /v1/agents/runtime/{runtime_id}/commands/run