CLIActive

Devbox Scripts

Run shell scripts defined in devbox.json with devbox run command.

Open source page ↗

Field note

What it does

Devbox Scripts is a feature of Devbox that allows you to define and run shell commands in your devbox.json file. Scripts run in an interactive devbox shell, support one-off commands, custom environment variables, and can manage long-running processes.

Capabilities

Available capabilities

Tags

Tags

No tags filed yet.

Ways to use it

Ways to use it

No integrations filed yet.

Product features

Product features

Custom environment variables

Set environment variables with --env flag or load from a .env file with --env-file flag.

Define scripts in devbox.json

Scripts are defined in the devbox.json file under the 'scripts' key, with a unique name and a command or list of commands.

Init hook integration

Scripts run after init_hook completes, allowing setup tasks.

Long-running process management

Use scripts to start and manage background processes and daemons.

One-off commands

Run any command in the devbox shell without defining it as a script.

Run scripts with devbox run

Use 'devbox run <script_name>' to execute a script in an interactive devbox shell.