Skip to main content

Execute a command

POST 

/commands/execute

Execute a command via npx --no in the mods directory with NDJSON streaming output. The response is a stream of newline-delimited JSON events: stdout, stderr, and exit.

Constraints:

  • args: max 64 elements, each max 4096 characters
  • stdin: max 1 MiB
  • timeoutMs: 1–300000 (default 30000)

Request

Responses

Command execution stream (NDJSON).