8abfa627cb
## Summary - Updates `e2b template init` to generate code using the current Template.build() API with the `name` parameter - Replaces deprecated `alias` parameter usage throughout build templates and generator code - Maintains support for all languages (TypeScript, Python sync/async) ## Changes - Renamed `alias` to `name` in generator functions and templates (8 files) - Updated CLI option description and prompts to reference "template name" consistently - Added changeset for patch release ## Testing All 79 template init tests pass, including validation of generated build files. 🤖 Generated with Claude Code <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Low risk: changes are limited to CLI template-code generation and user-facing prompts, primarily a rename from deprecated `alias` to `name` in generated build/README templates. > > **Overview** > Updates `e2b template init`/`migrate` code generation to pass a `name` parameter (and `name-dev` for dev builds) instead of the deprecated `alias`, across the Handlebars generator APIs and the TypeScript/Python build and README templates. > > Cleans up CLI UX copy to consistently refer to *template name* (option help text and interactive prompt), and adds a changeset for a patch release. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit d6e291df259a62efa4e59244b44ef8b4044d26dd. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY --> Co-authored-by: Claude Haiku 4.5 <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.
