hx CLI covers the sandbox workflows in this section: profile setup, sandbox creation, network policies, volume management, process execution, file transfer, terminals, snapshots, image builds, and port exposure.
Use the CLI when you want a shell-first workflow or need to script sandbox operations outside the SDKs. For the underlying API concepts, see Creating Sandboxes, Network Policies, Volumes, Sandbox Lifecycle, Sandbox Processes, Local Filesystem, Base Images, Build And Upload A Custom Image, and Sandbox Terminal.
Install
See Install for macOS, Linux, Windows, and direct-download instructions.Configure Profiles
Login with your accountOpen The Dashboard
Launch the interactive dashboard:hx dash requires an interactive terminal. Running hx without a subcommand
shows help; it does not open the dashboard automatically.Manage Volumes
Create, list, and inspect persistent volumes:See Managing Volumes and
Mounting Volumes for API-level rules.
Create Sandboxes
Launch from an image:Manage Outbound Network Access
Set a network policy when creating a sandbox:--allow-out or --deny-out flag may be repeated. Network updates apply
to new connections; established connections may continue until they close. See
Network Policies for rule precedence, target formats,
and domain behavior.
Build And List Images
hx vm image build packages a local Docker image before uploading it, so image
builds require Docker to be available locally.Inspect, Stop, And Expose Sandboxes
List and inspect sandboxes:Run Commands
Run a one-shot command inside a sandbox:Manage Long-Running Processes
Start a background process:Work With Files
Copy files and directories between your machine and a sandbox:Open An Interactive Terminal
Open a terminal in a selected sandbox:Create And Restore Snapshots
Create a memory snapshot from a running sandbox:JSON Output
Most commands support--json for scripting: