CLISandbox
Sandbox
19 `hanzo` commands for Sandbox, each calling one operation on api.hanzo.ai.
Package sandbox is the ONE compute primitive: a sandbox is a gVisor pod that runs somebody else's code, and every lifetime is the same object.
19 commands · API reference →
| Command | Calls | What it does |
|---|---|---|
hanzo sandboxes exec <id> | POST /v1/sandbox/{id}/exec | Run a command in a sandbox |
hanzo sandboxes fs get <id> | GET /v1/sandbox/{id}/fs | Read a file, or list a directory |
hanzo sandboxes fs create <id> | POST /v1/sandbox/{id}/fs | Write a file |
hanzo sandboxes screen ticket <id> | POST /v1/sandbox/{id}/screen/ticket | Open a screen |
hanzo sandboxes screen ws <id> | GET /v1/sandbox/{id}/screen/ws | The screen, as a socket |
hanzo sandboxes screen get <id> | GET /v1/sandbox/{id}/screen | The screen, as a page |
hanzo sandboxes terminal ticket <id> | POST /v1/sandbox/{id}/terminal/ticket | Open a terminal |
hanzo sandboxes terminal ws <id> | GET /v1/sandbox/{id}/terminal/ws | The terminal, as a socket |
hanzo sandboxes terminal get <id> | GET /v1/sandbox/{id}/terminal | The terminal, as a page |
hanzo sandboxes get <id> | GET /v1/sandbox/{id} | One sandbox |
hanzo sandboxes rm <id> | DELETE /v1/sandbox/{id} | End a sandbox |
hanzo sandboxes end | POST /v1/sandbox/end | End a sandbox and release it |
hanzo sandboxes lease | POST /v1/sandbox/lease | Lease a sandbox — a real computer — or resume one you hold |
hanzo sandboxes read | POST /v1/sandbox/read | Read a file from a sandbox you hold |
hanzo sandboxes run | POST /v1/sandbox/run | Run a command in a sandbox you hold and read its output |
hanzo sandboxes stop | POST /v1/sandbox/stop | Stop what a sandbox is running, and keep the sandbox |
hanzo sandboxes write | POST /v1/sandbox/write | Write a file into a sandbox you hold |
hanzo sandboxes list | GET /v1/sandbox | The sandboxes this org holds |
hanzo sandboxes create | POST /v1/sandbox | Lease a sandbox |
How is this guide?