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 reset the sandbox to its initial state, discarding any changes made during previous executions.

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.

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.