Skip to main content
POST
Execute Command

Path Parameters

app_name
string
required

Fly App Name

machine_id
string
required

Machine ID

Body

application/json

Request body

cmd
string

Deprecated: use Command instead

command
string[]
container
string
machine
boolean

Machine runs the command in the machine's own namespace instead of in a container. It is mutually exclusive with Container.

stdin
string
timeout
integer

Response

stdout, stderr, exit code, and exit signal are returned

exit_code
integer
exit_signal
integer
stderr
string
stdout
string