Get the exit code of the execution.
The exit code, or null if not available
Get the unique ID identifying this execution.
string A UUIDv7 execution ID
Check if the execution completed successfully (exit code 0).
True if the execution succeeded (exit code 0), false otherwise
Check if the execution failed (non-zero exit code).
True if the execution failed (non-zero exit code), false otherwise
Get the stdout output from the execution. If numLines is specified, it will return the last N lines. If numLines is not specified, it will return the entire stdout output. Note after the execution is completed, the stdout is not available anymore.
This method will retreive more logs from the server if necessary, an execution returns a subset of the logs. If you don't require all lines, it will resolve faster if you specify how many lines you need. Defaults to all lines.
OptionalnumLines: numberOptional number of lines to return from the end (most recent logs) Defaults to all lines.
The stdout content
Get the stderr output from the execution. If numLines is specified, it will return the last N lines. If numLines is not specified, it will return the entire stderr output. Note after the execution is completed, the stderr is not available anymore.
This method will retreive more logs from the server if necessary, an execution returns a subset of the logs. If you don't require all lines, it will resolve faster if you specify how many lines you need. Defaults to all lines.
OptionalnumLines: numberOptional number of lines to guarantee from the end (most recent logs) Defaults to all lines.
The stderr content
Execution Result object for a completed command execution.
Remarks
Overview
The
ExecutionResultclass provides access to the results of a completed command execution. It includes the exit code, stdout/stderr output, and convenient methods for checking success/failure.Quickstart
Execution results are typically obtained from
devbox.cmd.exec()orasyncExecution.result():Accessing Output
Get Full Output
Get Last N Lines