Prerequisites
- A running ZWRM control plane (
zwrmd) - The
zwrmCLI installed and configured - At least one built template (built-in templates are registered on startup)
Create an ephemeral sandbox
Create a sandbox from thepython template with a 10-minute timeout:
Execute a command
Run Python code inside the sandbox:Upload and download files
Upload a local file to the sandbox:Extend the timeout
If you need more time, extend the sandbox’s TTL:Check status
View the sandbox details:Create a persistent sandbox
Persistent sandboxes auto-suspend after inactivity and wake on demand:Destroy a sandbox
--force to skip the confirmation prompt.
Using the REST API
All CLI commands map to REST API endpoints. Here’s the equivalent of the above usingcurl:
Next steps
Ephemeral sandboxes
Deep dive into disposable sandbox environments.
Persistent sandboxes
Learn about auto-suspend, snapshots, and wake-on-demand.
Templates
Create custom templates for your sandboxes.