CLI
Sandboxes
Create and manage Linux workspaces from your terminal.
In the examples below, replace scratch with your sandbox ID or name.
Create a sandbox
shell
boltz create # opens an interactive menu to configure your sandboxChoose resources
List available machine sizes, prices, and environments.
shell
boltz machines
boltz environmentsList and inspect
shell
boltz ls
boltz status scratchRun commands
Use the name or ID of an existing sandbox.
shell
boltz exec scratch pip install requests
boltz exec scratch "cd /workspace && python train.py"Upload and run a file
shell
boltz cp ./train.py scratch:/workspace
boltz exec scratch python /workspace/train.pyOpen a shell
Press Ctrl-D to leave.
shell
boltz connect scratchPause, resume, or delete
Pause to release compute and keep files. Delete when you no longer need the sandbox.
shell
boltz pause scratch
boltz resume scratch
boltz rm scratchCopy files
Upload a directory or download results.
shell
boltz cp ./src scratch:/workspace
boltz cp scratch:/workspace/results.json ./results.jsonBrowser access
Start a web server in a sandbox, then open its port.
shell
boltz create --name web --internet --environment python
boltz exec web "python -m http.server 8000" &
boltz open web 8000Forward a port
Access the sandbox on localhost:9000. Press Ctrl-C to stop forwarding.
shell
boltz forward web 9000:8000