6798071059
## Summary - Skip the unnecessary `isRunning()` API call and `wait(400)` when `--follow` is not set in `sandbox logs`, preventing flaky timeouts in the backend integration test - Fix `waitForSandboxEnd` to return the `running` variable instead of the `isRunning` function reference, so the follow-mode loop actually terminates when the sandbox stops <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Small control-flow fixes in the CLI logs loop and sandbox status monitor; low blast radius with minimal behavioral change beyond making termination conditions correct. > > **Overview** > `sandbox logs` now breaks out immediately after printing the first batch when `--follow` isn’t set, avoiding extra status polling/sleeps that could cause flaky timeouts. > > Fixes `waitForSandboxEnd` to return the mutable `running` boolean (instead of the `isRunning` function reference), so follow-mode loops can actually stop when the sandbox exits. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 87cd7af5b1bdf9a7a4fe16e7a2100256b3d55d7b. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY -->
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.
