v1

latestOpenAPI 3.1.02026-07-13372867.8 KB
bash

Execute Shell Command

Executes a shell command and returns its output or background process information.

post/api/bash/command

Request body

commandstring required

Shell command to execute

Example request

{
  "command": "ls -la"
}

Response

Successfully executed command

outputstring nullable

Command output if available

process_idinteger nullable

Process ID if running in background

statusstring

Command status: 'completed' or 'background'

Example response

{
  "output": "total 20\ndrwxr-xr-x  3 user  group   96 Mar 10 12:34 .",
  "status": "completed"
}