Run a command in a process
Run a single command inside a running application process (container) and return its output. This is a non-interactive alternative to the WebSocket terminal: one command runs, and its stdout, stderr, and exit code are returned. The command runs directly without a shell, so pipes, redirects, and command chaining do not apply.
This endpoint requires at least read access to the application. A key with only read access can run these read-only commands: ls, cat, pwd, printenv, ps, df, du, grep, egrep, fgrep, find, head, tail, stat, wc, whoami, id, uname, echo, which, readlink, realpath, basename, dirname, cut, free, uptime, cksum, md5sum and sha256sum, plus env, date and hostname without arguments. The binary must be a bare name or sit under /bin or /usr/bin, arguments cannot contain any of the characters ; & | ` $ < > ( ) \ ' " * ? [ ] { } ~, a tab, a NUL or a line break, and find cannot use -exec, -execdir, -ok, -okdir, -delete, -fprint, -fprint0, -fprintf or -fls. Any other command is rejected with a 403. A key with write access to the application can run any command. Read-only commands can still read environment variables and files inside the container.
Authorizations
Path Parameters
Body
Command to run, given as an argument vector where the first element is the binary and the rest are its arguments (for example ["ls", "-la", "/app"]). The command is run directly, not through a shell, so shell features like pipes, redirects, globbing, and chaining with ; or && are not available. Run those as separate calls instead. API keys with only read access to the application can run read-only commands from a fixed list (such as ls, cat, printenv, ps, grep); keys with write access can run any command.
1 - 100 elementsResponse
Default Response