Skip to content

Exec

Source: src/Fly/Exec.ts

Run a command on a Sprite via POST /sprites/{name}/exec.

Bind the client in init. Provide ExecHttp. The Sprite name is fixed by Exec(box).

const exec = yield* Fly.Exec(Box);
const result = yield* exec({ cmd: ["ls", "-la"] });