Skip to main content
POST
Execute bash
Executes a bash command on the computer and returns the combined stdout/stderr output.

Path parameters

string
required
Computer ID (UUID).

Body parameters

string
required
Bash command to execute.
integer
default:"200"
Maximum execution time in seconds before the command is killed.

Response

string
Combined stdout and stderr.
integer
Process exit code.
string
Echo of the command that was executed.
boolean
true if the command ran (regardless of exit code). Check exit_code to determine if the command itself succeeded.

Example

Response

For Python code execution, use Execute Python instead.

Errors

Authorizations

Authorization
string
header
required

API key authentication. Get your key at orgo.ai/workspaces

Path Parameters

id
string
required

Computer ID

Body

application/json
command
string
required

Bash command to execute

Response

Command executed

output
string

Command output

success
boolean

Whether command succeeded