Skip to main content
POST
Executes a shell command or script inside the VM. Use this for programmatic control of the desktop environment.
Replace VM_API_IP:PORT with the actual IP and port of the VM’s Desktop Environment API server.

Request Body

array
required
Command and arguments as an array. For example: ["ls", "-la", "/home/user"]
boolean
default:"false"
Whether to run the command in shell mode

Response

string
Standard output from the command
string
Standard error output from the command
number
Exit code of the command (0 = success)