sbx env run
| Description | Create (if needed) and attach to a sandbox environment |
|---|---|
| Usage | sbx env run [PATH...] [flags] |
Experimental
This command is experimental.
Experimental features are intended for testing and feedback as their functionality or design may change between releases without warning or can be removed entirely in a future release.
Description
Read the environment file from PATH (default: current directory) and drop into the sandbox shell. If the sandbox already exists it is started and re-attached without re-provisioning; otherwise it is created first (provisioning secrets and bindings) and then attached.
Each PATH may be a directory (the file is -f semantics): later files override earlier ones.
Values may reference environment variables with ${VAR} / $VAR (and
${VAR:-default}); see the docs for the full syntax.
Options
| Option | Default | Description |
|---|---|---|
--clone | Override workspace.clone in .sbxenv.yaml (see 'sbx create --clone') | |
-d, --detached | Create/start the sandbox without attaching |
Global options
| Option | Default | Description |
|---|---|---|
-D, --debug | Enable debug logging |