## Summary - Add `.catch()` to the update check promise to prevent unhandled rejections from crashing the CLI process (Node.js >= 15) - Log caught errors only when `DEBUG` env var is set, keeping normal output clean ## Test plan - [ ] Run CLI normally — no error output on update check failure - [ ] Run with `DEBUG=1` — update check errors are logged to stderr 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Low risk: only changes error handling around the update-notifier promise, affecting logging/observability but not CLI command behavior. > > **Overview** > Makes the CLI’s update-notification check **fail-safe** by catching promise rejections instead of silently ignoring them. > > When `DEBUG` is set, the caught error is now logged to stderr (`Update check failed:`), keeping normal CLI output unchanged. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 88dcf26c56012520bf7b1bd8f5065c102769442e. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY --> Co-authored-by: Claude Opus 4.6 <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.