Execute a command on a running box. This endpoint allows you to send commands to the box and receive the output
Enter your API Key in the format: Bearer
Box ID
"c9bdc193-b54b-4ddb-a035-5ac0c598d32d"
Command execution request parameters
The command to run
"ls -la"
The environment variables to run the command
{
"PATH": "/usr/bin:/bin",
"NODE_ENV": "production"
}The working directory of the command. It not provided, the command will be run in the box.config.workingDir directory.
"/home/user/projects"
The timeout of the command. If the command times out, the exit code will be 124. For example: 'timeout 5s sleep 10s' will result in exit code 124.
Supported time units: ms (milliseconds), s (seconds), m (minutes), h (hours) Example formats: "500ms", "30s", "5m", "1h" Default: 30s
"30s"
Result of command execution