rwx sandbox reset

Stop and replace a sandbox.

Usage

rwx sandbox reset [config-file] [flags]

Description

Stops an existing sandbox and starts a fresh instance. This is useful when you want to re-run setup tasks (for example, after changing a dependency or the sandbox configuration), or to recover from a sandbox whose setup failed.

After running this command, a new RWX run will be created and you'll see its URL in the output. You can also pass --open when resetting to open the new run in your browser.

This command is equivalent to running rwx sandbox stop followed by rwx sandbox start. If you want to reset and immediately execute a command against the new sandbox, use rwx sandbox exec --reset instead.

Arguments

[config-file]

The path to the sandbox configuration file. Defaults to .rwx/sandbox.yml.

Options

-d, --dir <directory>

The directory your RWX configuration files are located in, typically .rwx. By default, the CLI traverses up until it finds a .rwx directory.

--open

Open the run in a browser after starting.

--wait

Wait for the sandbox to be ready before returning. Without this flag, the command returns immediately after initiating the reset.

Global Options

--output <format>

Output format: text or json. Defaults to text.

--access-token <token>

The access token for RWX. Defaults to the value of the $RWX_ACCESS_TOKEN environment variable.