Skip to main content
Use devbox exec to run a non-interactive command on a Devbox. The execution and its output are retained so you can inspect them with devbox logs.

Usage

A command is required. Flags for devbox exec must appear before the Devbox name because flag parsing stops at the first positional argument.

Run a command and wait

The command streams the execution logs and returns the remote command’s result.

Start a detached execution

Output

Options

boolean
default:"false"
Start the command, print its execution ID, and return without waiting for completion.
boolean
default:"false"
Include Devboxes owned by other workspace members when selecting a Devbox.

Execute commands

Learn how executions and retained logs work.
Last modified on August 28, 2026