Exec

Execute Command

Execute a command via simple HTTP POST (non-TTY only). Simpler alternative for exec for environments that can't handle websockets.

post/v1/sprites/{name}/exec

Request

  • Base URL: https://api.sprites.dev
  • URL: https://api.sprites.dev/v1/sprites/{name}/exec
  • Auth: HTTP bearer

Path parameters

namestring required

Query parameters

cmdstring required

Command to execute (can be repeated for command + args)

pathstring

Explicit path to executable (defaults to first cmd value or bash)

stdinboolean

Enable stdin from request body (default: false)

envstring

Environment variables in KEY=VALUE format (can be repeated)

dirstring

Working directory for the command

Response

Success

Changes

No recorded changes to this operation across all 1 revision of this API.