b65f190d5c
Current instructions would fail unless e2b was already installed <!-- CURSOR_SUMMARY --> --- > [!NOTE] > Add `e2b` install instructions to template init/migrate outputs and README, with minor wording tweaks and a patch changeset. > > - **CLI (templates)**: > - Update `template init` and `template migrate` post-run output to include installing `e2b` (`npm install e2b` or `pip install e2b`). > - Reword headings to “To get started with your template” and clarify build command labels (run dev/prod build). > - **Docs/Templates**: > - Add “Installing Dependencies” section to `packages/cli/src/templates/readme.hbs` with language-specific `e2b` install instructions. > - **Release**: > - Add patch changeset for `@e2b/cli`. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 68d3093b910ef711923ecfc300ab9fc2ece69456. 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.
