| Name | Type | Description |
|---|---|---|
command* | string |
Execute a command in the sandbox.
Commands are run using the sandbox's shell in the configured working directory.
The shell command to execute
const result = await sandbox.execute("echo 'Hello World'");
console.log(result.output); // "Hello World\n"
console.log(result.exitCode); // 0