Share feedback
Answers are generated based on the documentation.

sbx env run

DescriptionCreate (if needed) and attach to a sandbox environment
Usagesbx 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 /.sbxenv.yaml) or the path to the environment file itself. Passing more than one PATH deep-merges them in order (docker-compose -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

OptionDefaultDescription
--cloneOverride workspace.clone in .sbxenv.yaml (see 'sbx create --clone')
-d, --detachedCreate/start the sandbox without attaching

Global options

OptionDefaultDescription
-D, --debugEnable debug logging