github-actions[bot]
546a2282fa
[skip ci] Release new versions
2025-10-17 17:08:22 +00:00
github-actions[bot]
ace327e948
[skip ci] Release new versions
2025-10-16 11:50:51 +00:00
github-actions[bot]
ebb3f08039
[skip ci] Release new versions
2025-10-14 10:07:23 +00:00
github-actions[bot]
e5ffc79f7a
[skip ci] Release new versions
2025-10-09 12:52:02 +00:00
github-actions[bot]
d7ba1e0828
[skip ci] Release new versions
2025-10-08 10:47:40 +00:00
github-actions[bot]
fb6dd8303f
[skip ci] Release new versions
2025-10-08 01:00:08 +00:00
Tomas Valenta
f5cfa6d897
Update node version in SDK and CLI ( #935 )
2025-10-08 00:46:01 +00:00
github-actions[bot]
2d62fdcc46
[skip ci] Release new versions
2025-10-03 22:10:01 +00:00
github-actions[bot]
64e8f057d2
[skip ci] Release new versions
2025-09-30 15:53:06 +00:00
github-actions[bot]
4de9dabca0
[skip ci] Release new versions
2025-09-26 13:44:26 +00:00
Jakub Dobry
2ec9ea8a44
feat: add template init for new template SDK ( #881 )
2025-09-26 06:40:58 -07:00
github-actions[bot]
ae19d941f0
[skip ci] Release new versions
2025-09-26 12:09:44 +00:00
github-actions[bot]
0726589667
[skip ci] Release new versions
2025-09-25 09:12:18 +00:00
github-actions[bot]
2eeca3f807
[skip ci] Release new versions
2025-09-19 15:44:52 +00:00
Jakub Dobry
b9c4b16baa
feat: add template migration to CLI ( #880 )
...
## 🔄 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 existing `e2b.Dockerfile` and `e2b.toml` configurations into
SDK-compatible template files using Handlebars templates.
### What's Changed
#### ✨ New Features
- **Template Migration Command**: Added `e2b template migrate` command
for converting legacy configurations to SDK format
- **Multi-Language Support**: Supports migration to TypeScript, Python
(sync), and Python (async) formats
- **Interactive Language Selection**: CLI prompts for target language
when not specified
- **Multi-stage Dockerfile Support**: Added fallback handling for
complex multi-stage Dockerfiles
#### 🔧 Technical Improvements
- **Enhanced ENV Handling**: Improved parsing of multiple environment
variables from single ENV instructions
- **File Name Conflict Resolution**: Automatic unique filename
generation to prevent overwriting existing files
- **Comprehensive Template Generation**: Creates both development and
production build files
#### 📁 New Template Files
- `typescript-template.hbs` - TypeScript template generation
- `typescript-build.hbs` - TypeScript build script template
- `python-template.hbs` - Python template generation (supports both
sync/async)
- `python-build-async.hbs` - Python async build script template
- `python-build-sync.hbs` - Python sync build script template
### Usage
```bash
# Migrate with interactive language selection
e2b template migrate
# Migrate to specific language
e2b template migrate --language typescript
e2b template migrate --language python-sync
e2b template migrate --language python-async
# Custom paths
e2b template migrate --dockerfile custom.dockerfile --config custom.toml
```
### Generated Output
The migration command generates three files per target:
- `template.{ts|py}` - Template definition using SDK
- `build{.|_}dev.{ts|py}` - Development build script
- `build{.|_}prod.{ts|py}` - Production build script
### Migration Process
1. **Parse Configuration**: Reads `e2b.toml` for template settings
2. **Dockerfile Analysis**: Uses E2B SDK to parse Dockerfile
instructions
3. **Transformation**: Converts Docker instructions to SDK method calls
4. **Code Generation**: Uses Handlebars templates to generate target
language files
5. **File Creation**: Writes template and build files with conflict
resolution
### Error Handling
- **Graceful Dockerfile Parsing**: Falls back to custom image reference
for unparseable Dockerfiles
- **Clear User Guidance**: Provides manual build instructions when
automatic conversion fails
- **Validation**: Ensures required configuration files exist before
migration
2025-09-19 17:41:28 +02:00
github-actions[bot]
fba88a7aea
[skip ci] Release new versions
2025-09-15 05:30:29 +00:00
github-actions[bot]
742ed67a80
[skip ci] Release new versions
2025-09-12 19:51:16 +00:00
Mish Ushakov
2a346bfcd2
Added format option to CLI sandbox + templates list ( #903 )
...
This PR is based on https://github.com/e2b-dev/E2B/pull/902 , please
proceed with that first
**Changelog**
- Added `--format` option to "e2b sandbox list" and "e2b template list".
Can either be "table" or "json"
Sandboxes list in JSON format
<img width="471" height="341" alt="Screenshot 2025-09-12 at 11 17 45"
src="https://github.com/user-attachments/assets/13455b62-5efb-4b11-8fe3-a39b3fb6dffc "
/>
Templates list in JSON format
<img width="449" height="377" alt="Screenshot 2025-09-12 at 11 18 55"
src="https://github.com/user-attachments/assets/47fa3c2b-2e4c-4854-a87f-65c325261521 "
/>
2025-09-12 21:47:07 +02:00
github-actions[bot]
2162c6191f
[skip ci] Release new versions
2025-09-03 12:49:17 +00:00
github-actions[bot]
0070938d01
[skip ci] Release new versions
2025-09-01 07:47:17 +00:00
Jakub Novák
b42ab2a86b
Add pipeline for linting and formatting ( #883 )
...
Setup linting and formatting in all packages
2025-08-31 12:06:00 -07:00
github-actions[bot]
663d832ddc
[skip ci] Release new versions
2025-08-22 09:45:46 +00:00
github-actions[bot]
774dfd7667
[skip ci] Release new versions
2025-08-21 15:51:16 +00:00
github-actions[bot]
64a5d52dd5
[skip ci] Release new versions
2025-07-31 10:43:16 +00:00
github-actions[bot]
0c6cfed137
[skip ci] Release new versions
2025-07-31 09:57:39 +00:00
github-actions[bot]
76d62ed070
[skip ci] Release new versions
2025-07-30 19:25:33 +00:00
github-actions[bot]
37ec33654d
[skip ci] Release new versions
2025-07-18 15:23:52 +00:00
github-actions[bot]
e7538fb5cc
[skip ci] Release new versions
2025-07-18 11:20:02 +00:00
github-actions[bot]
5f207ffa95
[skip ci] Release new versions
2025-07-17 13:16:31 +00:00
github-actions[bot]
8b8cf0084f
[skip ci] Release new versions
2025-07-09 14:49:53 +00:00
github-actions[bot]
93134e2faa
[skip ci] Release new versions
2025-06-18 12:16:44 +00:00
github-actions[bot]
23a9298252
[skip ci] Release new versions
2025-06-13 00:45:36 +00:00
Jakub Dobry
e244ba72c0
Add option for a template ready check ( #750 )
...
## Description
Add option for a template ready check. You can specify `ready_cmd` which
will be run until it exits with code 0. Max timeout is 5 minutes. After
exit code 0, the template will be marked as ready.
If no ready command is defined, `sleep 20` is assumed when the start
command is present, and `sleep 0` when none is defined. It is also
possible to define ready command without any start command. This might
be helpful if the filesystem contains self-booted services (e.g. using
systemd).
```
ready_cmd = "echo 'Starting ready check'; sleep 40; echo 'Template is ready'"
```
This adds possibility to configure the default 20 seconds wait time for
a start command.
New documentation can be found at `/docs/sandbox-template/ready-cmd`.
## Checklist
- [x] Make sure the https://github.com/e2b-dev/infra/pull/719 is
deployed
---------
Co-authored-by: Vasek Mlejnsky <vasek@e2b.dev >
Co-authored-by: Jakub Novák <jakub@e2b.dev >
2025-06-12 17:42:37 -07:00
github-actions[bot]
27e292eedc
[skip ci] Release new versions
2025-06-05 15:39:44 +00:00
github-actions[bot]
6c0927e358
[skip ci] Release new versions
2025-06-05 14:15:25 +00:00
github-actions[bot]
41ef82cbd2
[skip ci] Release new versions
2025-05-15 17:22:06 +00:00
Ben Fornefeld
10db4e95e6
CLI: Improve auth login typing + browser sign in response usage ( #733 )
...
This pr improves the auth login code, to be more declarative and
realistic to the actual response that is sent by the dashboard sign in
flow.
2025-05-15 19:18:24 +02:00
github-actions[bot]
231e19694d
[skip ci] Release new versions
2025-05-15 16:46:57 +00:00
Jakub Novák
4ec6c82630
Security patches ( #706 )
...
# Description
Fixes:
https://github.com/e2b-dev/E2B/security/dependabot/163
https://github.com/e2b-dev/E2B/security/dependabot/157
https://github.com/e2b-dev/E2B/security/dependabot/156
https://github.com/e2b-dev/E2B/security/dependabot/148
https://github.com/e2b-dev/E2B/security/dependabot/147
2025-04-29 02:41:14 -07:00
github-actions[bot]
2c633a4ee9
[skip ci] Release new versions
2025-04-24 15:34:38 +00:00
github-actions[bot]
cde5128e96
[skip ci] Release new versions
2025-04-24 09:46:24 +00:00
github-actions[bot]
32664ea0fe
[skip ci] Release new versions
2025-04-01 20:36:48 +00:00
github-actions[bot]
e7321d5b12
[skip ci] Release new versions
2025-03-28 20:38:03 +00:00
github-actions[bot]
184f33c269
[skip ci] Release new versions
2025-03-25 15:23:47 +00:00
Jiri Sveceny
197d966ad0
Update cli to latest sdk version ( #636 )
2025-03-24 17:25:51 +01:00
github-actions[bot]
b402327b6d
[skip ci] Release new versions
2025-03-20 09:56:31 +00:00
github-actions[bot]
ac87d9df35
[skip ci] Release new versions
2025-03-04 00:58:32 +00:00
github-actions[bot]
ee90cd222f
[skip ci] Release new versions
2025-03-01 01:48:50 +00:00
github-actions[bot]
9f23f542d1
[skip ci] Release new versions
2025-02-22 00:00:40 +00:00
Jakub Dobry
f706f825af
Bump package json version for the e2b/cli
2025-02-21 15:56:34 -08:00