6d66d159d1
## Summary - `e2b auth login` previously crashed on headless machines (no `xdg-open`) with an unhandled `error` event from the spawned browser process. - Attach an `error` listener (and `.catch`) to the `open` call; on failure, print the login URL so the user can open it manually. - Added a changeset for `@e2b/cli` (patch). ## Test plan - [ ] On a headless Linux box without `xdg-open`, run `e2b auth login` and confirm the CLI prints the manual URL instead of crashing. - [ ] On macOS/Linux with a desktop, confirm the browser still opens automatically and login completes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
E2B CLI
This CLI tool allows you to build manager your running E2B sandbox and sandbox templates. Learn more in our documentation.
1. Install the CLI
Using Homebrew (on macOS)
brew install e2b
Using NPM
npm install -g @e2b/cli
2. Authenticate
e2b auth login
Note
To authenticate without the ability to open the browser, provide
E2B_ACCESS_TOKENas an environment variable. You can find your token in Account Settings under the Team selector at e2b.dev/dashboard. Then use the CLI like this:E2B_ACCESS_TOKEN=sk_e2b_... e2b template build.
Important
Note the distinction between
E2B_ACCESS_TOKENandE2B_API_KEY.
3. Check out docs
Visit our CLI documentation to learn more.
