Last Updated: 3/7/2026
CLI Installation
The E2B CLI provides command-line tools for managing sandboxes and templates.
Installation
Using npm
npm install -g @e2b/cliAuthentication
Before using the CLI, you need to authenticate:
e2b auth loginAvailable Commands
Sandbox Management
# List running sandboxes
e2b sandbox list
# Create a sandbox
e2b sandbox create
# Connect to a sandbox
e2b sandbox connect <sandbox-id>