modal
    Preparing search index...

    Type Alias SandboxExecParams

    Optional parameters for Sandbox.exec().

    type SandboxExecParams = {
        env?: Record<string, string>;
        mode?: StreamMode;
        pty?: boolean;
        secrets?: Secret[];
        stderr?: StdioBehavior;
        stdout?: StdioBehavior;
        timeout?: number;
        workdir?: string;
    }
    Index

    Properties

    env?: Record<string, string>

    Environment variables to set for the command.

    mode?: StreamMode

    Specifies text or binary encoding for input and output streams.

    pty?: boolean

    Enable a PTY for the command.

    secrets?: Secret[]

    Secrets to inject as environment variables for the commmand.

    stderr?: StdioBehavior

    Whether to pipe or ignore standard error.

    stdout?: StdioBehavior

    Whether to pipe or ignore standard output.

    timeout?: number

    Timeout for the process in milliseconds. Defaults to 0 (no timeout).

    workdir?: string

    Working directory to run the command in.