devbox run. For example:
Hello World to the console from within your devbox shell.
For more details, read our scripts guide
Examples
Options
SEE ALSO
- devbox - Instant, easy, predictable shells and containers
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Starts a new interactive shell and runs your target script in it. The shell will exit once your target script is completed or when it is terminated via CTRL-C. Scripts can be defined in your devbox.json.
devbox run. For example:
devbox run echo "Hello World"
Hello World to the console from within your devbox shell.
For more details, read our scripts guide
devbox run <script | command> [flags]
# Run a command directly:
devbox add cowsay
devbox run cowsay hello
# Run a command that takes flags:
devbox run cowsay -d hello
# Pass flags to devbox while running a command.
# All `devbox run` flags must be passed before the command
devbox run -q cowsay -d hello
# Run a script (defined as `"moo": "cowsay moo"`) in your devbox.json:
devbox run moo
| Option | Description |
|---|---|
-c, --config string | path to directory containing a devbox.json config file |
-e, --env stringToString | environment variables to set in the devbox environment (default []) |
--env-file string | path to a file containing environment variables to set in the devbox environment |
-h, --help | help for run |
-q, --quiet | Quiet mode: Suppresses logs. |
Was this page helpful?