-
Notifications
You must be signed in to change notification settings - Fork 657
feat: add template migration to CLI #880
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
🔄 Add Template Migration to CLI
Summary
This PR introduces a new
migrate
command to the E2B CLI that helps users transition from the legacy Dockerfile + TOML configuration format to the new Template SDK format. The migration tool automatically converts existinge2b.Dockerfile
ande2b.toml
configurations into SDK-compatible template files using Handlebars templates.What's Changed
✨ New Features
e2b template migrate
command for converting legacy configurations to SDK format🔧 Technical Improvements
📁 New Template Files
typescript-template.hbs
- TypeScript template generationtypescript-build.hbs
- TypeScript build script templatepython-template.hbs
- Python template generation (supports both sync/async)python-build-async.hbs
- Python async build script templatepython-build-sync.hbs
- Python sync build script templateUsage
Generated Output
The migration command generates three files per target:
template.{ts|py}
- Template definition using SDKbuild{.|_}dev.{ts|py}
- Development build scriptbuild{.|_}prod.{ts|py}
- Production build scriptMigration Process
e2b.toml
for template settingsError Handling