Skip to content

Conversation

dobrac
Copy link
Contributor

@dobrac dobrac commented Aug 28, 2025

🚀 Update template init to new SDK

This PR updates the e2b template init command to leverage the new E2B Templates SDK, providing a more streamlined and developer-friendly experience for creating sandbox templates.

🔧 Key Features

Template Structure

my-template/
├── template.ts          # Template definition using E2B SDK
├── build.dev.ts         # Development build script
└── build.prod.ts        # Production build script

Generated Build Scripts

  • npm run e2b:build:dev - Build development template
  • npm run e2b:build:prod - Build production template

Template Definition Example

const template = Template()
  .fromImage('ubuntu:22.04')
  .runCmd('echo Hello World E2B!')

@dobrac dobrac self-assigned this Aug 28, 2025
@dobrac dobrac added the feature New feature or request label Aug 28, 2025
Copy link

linear bot commented Aug 28, 2025

Copy link

changeset-bot bot commented Aug 28, 2025

⚠️ No Changeset found

Latest commit: 03faeb9

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@dobrac dobrac changed the base branch from main to add-template-migration-to-cli August 28, 2025 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant