Execute a command asynchronously
post/process/spawn
Request body
commandstring required
Executable or shell command to run.
argsstring[]
Command arguments.
cwdstring nullable
Working directory (absolute path) to run the command in.
envobject
Environment variables to set for the process.
as_userstring nullable
Run the process as this user.
as_rootboolean
Run the process with root privileges.
timeout_secinteger nullable
Maximum execution time in seconds.
allocate_ttyboolean
Allocate a pseudo-terminal (PTY) for the process to enable interactive shells.
rowsinteger
Initial terminal rows when allocate_tty is true.
colsinteger
Initial terminal columns when allocate_tty is true.
Response
Spawned
process_idstring uuid
Server-assigned identifier for the process.
pidinteger
OS process ID.
started_atstring date-time
Timestamp when the process started.