Execute a shell command on the server.

interface Action {
    command: string[];
    env: Record<string, string>;
    timeout_ms?: null | number;
    type: "exec";
    user?: null | string;
    working_directory?: null | string;
}

Properties

command: string[]

The command to run.

env: Record<string, string>

Environment variables to set for the command.

timeout_ms?: null | number

Optional timeout in milliseconds for the command.

type: "exec"

The type of the local shell action. Always exec.

user?: null | string

Optional user to run the command as.

working_directory?: null | string

Optional working directory to run the command in.