Execute a command on the devbox and wait for it to complete. Optionally provide callbacks to stream logs in real-time.
When callbacks are provided, this method waits for both the command to complete AND all streaming data to be processed before returning.
The command to execute
Optionalparams: Omit<DevboxExecuteParams, "command" | "command_id"> & ExecuteStreamingCallbacksOptional parameters including shell name and callbacks
Optionaloptions: RequestOptions<unknown> & {Request options with optional polling configuration
ExecutionResult with stdout, stderr, and exit status
Execute a command asynchronously without waiting for completion. Optionally provide callbacks to stream logs in real-time as they are produced.
Callbacks fire in real-time as logs arrive. When you call execution.result(), it will wait for both the command to complete and all streaming to finish.
The command to execute
Optionalparams: Omit<DevboxExecuteAsyncParams, "command"> & ExecuteStreamingCallbacksOptional parameters including shell name and callbacks
Optionaloptions: RequestOptions<unknown>Request options
Execution object for tracking and controlling the command
Command execution operations for a devbox. Provides methods for executing commands synchronously and asynchronously.