E2B CLI
Install#
brew install e2bnpm i -g @e2b/cliCommon commands#
| Task | Command |
|---|---|
| Start a sandbox from the pre-built Claude Code template | e2b sbx create claude |
| Fork a running sandbox | e2b sandbox fork <sandboxID> |
| Scaffold a new template | e2b template init |
| Build a template (V2 build system) | e2b template create |
Convert an old e2b.toml + e2b.Dockerfile template |
e2b template migrate |
| Check which envd version your templates use | e2b template list |
e2b template build is a deprecation stub and exits immediately. Use e2b template create.