Skip to content

fix(cli): use latest Template.build API with name parameter#1209

Merged
mishushakov merged 1 commit into
mainfrom
mishushakov/template-init-syntax
Mar 21, 2026
Merged

fix(cli): use latest Template.build API with name parameter#1209
mishushakov merged 1 commit into
mainfrom
mishushakov/template-init-syntax

Conversation

@mishushakov
Copy link
Copy Markdown
Member

@mishushakov mishushakov commented Mar 17, 2026

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


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.

Written by Cursor Bugbot for commit d6e291d. This will update automatically on new commits. Configure here.

…f deprecated alias

Updates e2b template init command to generate code using the current Template.build() API which accepts a name parameter instead of the deprecated alias-based approach. Changes affect build templates and generator code across TypeScript and Python (sync/async) languages.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@chatgpt-codex-connector
Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Mar 17, 2026

🦋 Changeset detected

Latest commit: d6e291d

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

💥 An error occurred when fetching the changed packages and changesets in this PR
Some errors occurred when validating the changesets config:
The package or glob expression "e2b-docs" is specified in the `ignore` option but it is not found in the project. You may have misspelled the package name or provided an invalid glob expression. Note that glob expressions must be defined according to https://www.npmjs.com/package/micromatch.

@github-actions
Copy link
Copy Markdown
Contributor

Package Artifacts

Built from 65037fa. Download artifacts from this workflow run.

JS SDK (e2b@2.14.2-mishushakov-template-init-syntax.0):

npm install ./e2b-2.14.2-mishushakov-template-init-syntax.0.tgz

CLI (@e2b/cli@2.8.2-mishushakov-template-init-syntax.0):

npm install ./e2b-cli-2.8.2-mishushakov-template-init-syntax.0.tgz

Python SDK (e2b==2.15.2+mishushakov-template-init-syntax):

pip install ./e2b-2.15.2+mishushakov.template.init.syntax-py3-none-any.whl

@mishushakov mishushakov enabled auto-merge (squash) March 17, 2026 18:47
@mishushakov mishushakov merged commit 8abfa62 into main Mar 21, 2026
19 of 23 checks passed
@mishushakov mishushakov deleted the mishushakov/template-init-syntax branch March 21, 2026 06:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants