Modal Sandboxes to Vakna: SDK calls and vakna commands
Note
This page is generated from a mock CLI, and its numbers are placeholders.
Verified against vakna 0.0.0-mock on
Each Modal Sandboxes call maps to one vakna command below. Their calls are from their public docs, checked on 20 October 2026, with the page for each. Vakna is a CLI; they are SDKs, so a row maps a call to a command, not a function to a function.
Which vakna command replaces each Modal call?
| Modal (JavaScript SDK) | vakna |
|---|---|
modal.sandboxes.create(app, image) (docs) |
vakna create |
sb.exec([...]), then p.stdout.readText() and p.wait() (docs) |
vakna shell <box> -- <command> |
modal.sandboxes.list({ appId }) (docs) |
vakna list |
sb.terminate() (docs) |
vakna delete <box> |
sb.snapshotFilesystem(), then modal.sandboxes.create(app, snapshot) (docs) |
vakna snapshot <box>, vakna fork <box> --count <n> -- <command> |
blockNetwork, outboundDomainAllowlist at create (docs) |
lockdown by default, vakna net allow <host> |
sb.filesystem.writeText(...) (docs) |
tar c . | vakna shell <box> -- tar x |
modal.sandboxes.fromId(id) (docs) |
address the box by name or id in any command |