Execute a command in the sandbox.
run(
self,
command: str,
*,
timeout: int = 60,
env: Optional[dict[str, str]] = None,
cwd: Optional[str] = None,
shell: str = '/bin/bash'
) -> ExecutionResult| Name | Type | Description |
|---|---|---|
command* | str | Shell command to execute. |
timeout | int | Default: 60Command timeout in seconds. |
env | Optional[dict[str, str]] | Default: NoneEnvironment variables to set for the command. |
cwd | Optional[str] | Default: NoneWorking directory for command execution. If None, uses sandbox default. |
shell | str | Default: '/bin/bash'Shell to use for command execution. Defaults to "/bin/bash". |