Jakub Novák
f81307c515
Allow for short sandbox id in e2b sbx connect ( #702 )
...
# Description
Allow for short sandbox ID in CLI when using `e2b sandbox connect
<sandbox-id>`
2025-04-24 08:31:04 -07:00
Jakub Novák
64f2f71309
Respect E2B_DOMAIN for e2b auth login in CLI ( #701 )
...
# Description
- Respect `E2B_DOMAIN` for `e2b auth login` in CLI
- Keep `E2B_DOCS_BASE` to allow for running dashboard locally or towards
potentially different domain
2025-04-24 11:43:34 +02:00
Mish Ushakov
c3ecd7c684
Remove backslashes from the docker build command (Windows) ( #652 )
...
- Fixing #650 , on Windows commands cannot separate arguments by
backslash (\).
2025-04-01 16:32:56 +01:00
David Batey
e8fab568da
build-arg's not working for e2b template build command ( #644 )
...
At the moment if you pass in build args it breaks since the commands
aren't compatible with the docker build command:
Sample error at the moment when passing the --build-arg to e2b which
proxies the command on incorrectly:
```
(base) ➜ web git:(lb) ✗ npm run build-template template-name version
> new-nextjs-app@0.1.0 build-template
> ts-node scripts/build-template.ts template-name template-version sha
ERROR: "docker buildx build" requires exactly 1 argument.
See 'docker buildx build --help'.
Usage: docker buildx build [OPTIONS] PATH | URL | -
Start a build
/bin/sh: line 4: --build-arg=TEMPLATE_VERSION=0.0.1: command not found
Error: Command failed: docker build . \
-f e2b.Dockerfile \
--pull --platform linux/amd64 \
-t docker.e2b.dev/e2b/custom-envs/17e92ok9u0gimh3oy1qg:be0bdf11-4cf2-4ee0-a932-1ecb6ae50298 --build-arg="TEMPLATE_NAME=lead-magnet" \
--build-arg="TEMPLATE_VERSION=0.0.1"
at genericNodeError (node:internal/errors:983:15)
at wrappedFn (node:internal/errors:537:14)
at checkExecSyncError (node:child_process:889:11)
at Object.execSync (node:child_process:961:15)
at e.<anonymous> (/opt/homebrew/lib/node_modules/@e2b/cli/src/commands/template/build.ts:363:23) {
status: 127,
signal: null,
output: [ null, null, null ],
pid: 67925,
stdout: null,
stderr: null
}
Failed to build template: Error: Command failed: e2b template build -d "../../sandbox/templates/e2b.Dockerfile" -n template-name sha1 --build-arg TEMPLATE_NAME=template-name --build-arg TEMPLATE_VERSION=0.0.1 -p "../sandbox/templates/"
ERROR: "docker buildx build" requires exactly 1 argument.
See 'docker buildx build --help'.
Usage: docker buildx build [OPTIONS] PATH | URL | -
```
---------
Co-authored-by: Mish <10400064+mishushakov@users.noreply.github.com >
2025-03-28 21:34:50 +01:00
r33drichards
ad73fab8f0
Include build ID output for debugging purposes ( #616 )
2025-03-19 15:50:11 -07:00
r33drichards
56ca5e0b8b
Show resolvable url in error message ( #596 )
...
Before the urls in our error messages pointed to a doc page that doesn't
exist. This change updates the urls with links that resolve to dashboard
also adds note on how to create changesets
2025-03-03 16:55:38 -08:00
r33drichards
0619540d6e
Display correct key name for api key ( #594 )
2025-02-28 17:46:12 -08:00
Tomas Valenta
4bc71297ff
Fix CLI build issue ( #578 )
...
Load update notifier dynamically
We needed update the package because of vulnerabilities
If we don't load it asynchronously there's following error.
```
packages/cli generate-ref: /home/runner/work/E2B/E2B/packages/cli/dist/index.js:55406
packages/cli generate-ref: var updateNotifier = __toESM(require("update-notifier"));
packages/cli generate-ref: ^
packages/cli generate-ref: Error [ERR_REQUIRE_ESM]: require() of ES Module /home/runner/work/E2B/E2B/node_modules/.pnpm/update-notifier@6.0.2/node_modules/update-notifier/index.js from /home/runner/work/E2B/E2B/packages/cli/dist/index.js not supported.
packages/cli generate-ref: Instead change the require of /home/runner/work/E2B/E2B/node_modules/.pnpm/update-notifier@6.0.2/node
```
2025-02-21 15:50:21 -08:00
Jakub Dobry
ec36840c04
update the update-notifier import to esm, remove it from the excludedPackages
2025-02-21 15:44:44 -08:00
Vasek Mlejnsky
9ef3dcb516
Explicitly mention docker commands when building template
2025-02-21 14:46:16 -08:00
Jakub Novak
429ec0366f
Load update notifier dynamically
2025-02-10 18:34:10 -08:00
Jakub Novak
391f0709e2
Fix socker closed build error
2025-01-30 13:41:52 -08:00
Mish Ushakov
fc8086dcf5
Changed template ls command to sync with latest API changes ( #508 )
...
- Added createdBy, createdAt columns
- Hidden 'buildCount', 'lastSpawnedAt', 'spawnCount', 'updatedAt'
columns
- Sync API spec and ts schema to latest
---------
Co-authored-by: Mish Ushakov <mishushakov@users.noreply.github.com >
Co-authored-by: Jakub Novák <jakub@e2b.dev >
2024-12-17 11:35:20 +01:00
Jakub Novak
ed731d2d53
Follow shortcut naming convention
2024-12-09 17:10:45 +01:00
Jakub Novák
407f330de9
Added publish/unpublish commands to the CLI ( #484 )
...
Adds publish/unpublish commands to the CLI to allow changing the
visibility of templates. Publishing a template makes it visible to other
teams using E2B, while setting it private (default) only makes it
visible within your own team.
example usage:
```
e2b template publish <template>
```
```
e2b template unpublish <template>
```
2024-12-09 00:51:31 -08:00
Jakub Novak
d4bc3c707f
Fix link for docker build
2024-12-03 18:11:19 -08:00
Mish Ushakov
b80f72759a
maxLen and aliases comma-split
2024-12-03 21:01:57 +01:00
Mish Ushakov
314ce295d8
remove table borders in CLI
2024-11-29 15:36:25 +01:00
Mish Ushakov
11e1c7dca3
guardrail if no sandbox templates are available to publish/unpublish
2024-11-29 15:23:38 +01:00
Mish Ushakov
e445208875
added publish and unpublish commands
2024-11-29 14:43:33 +01:00
0div
a52e7a7a71
fix cli sdk autogen with sdk keyword
2024-11-26 10:48:39 -08:00
0div
1b7fdb279b
remove "defined in" in js-sdk
2024-11-22 10:05:16 -08:00
Jakub Novák
2949adbad6
Update packages/cli/src/commands/template/buildWithProxy.ts
2024-11-21 10:54:25 -08:00
Jakub Novák
a67a47078d
Update packages/cli/src/commands/template/buildWithProxy.ts
...
Co-authored-by: Tomas Valenta <valenta.and.thomas@gmail.com >
2024-11-21 10:53:50 -08:00
Jakub Novák
2d73e78bef
Update packages/cli/src/commands/template/buildWithProxy.ts
...
Co-authored-by: Tomas Valenta <valenta.and.thomas@gmail.com >
2024-11-21 10:53:44 -08:00
Jakub Novak
0d154eb07e
Add workaround for broken Docker auth
2024-11-20 17:18:42 -08:00
Tomas Valenta
722b75e1b0
Increase sandbox refresh timeout for CLI spawned sandboxes
2024-10-23 21:44:02 -07:00
Tomas Valenta
1e2daa3331
Remove outdated comment
2024-10-20 17:48:17 -07:00
Jakub Novak
69befd6914
Show log times in milliseconds
2024-10-18 17:29:42 -07:00
Jakub Novak
d0fca6efc2
Improve the message when selecting a team in CLI
2024-10-17 20:09:36 -07:00
Jakub Novak
a58cd9c0fa
Fix CLI login issues
2024-10-17 20:09:36 -07:00
Tomas Valenta
5d87002df1
Don't print stack trace on user terminal interrupt
2024-10-16 14:21:44 -07:00
Jakub Novak
d60ea0f6fb
Add possibiliy to filter out logs based on loggers
2024-10-16 01:41:42 -07:00
Jakub Novak
65df898277
Fix env variables precedence
2024-10-16 00:40:04 -07:00
Jakub Novak
8aec5fb870
Don't filter out loggers by default
2024-10-15 23:31:43 -07:00
Tomas Valenta
ce4e063469
Fix exception handling in CLI
2024-10-15 22:58:55 -07:00
Tomas Valenta
1cc3dbe7d0
Change default image for template init
2024-10-15 22:24:58 -07:00
Jakub Novak
a09af0d132
Fix Ctrl+C in CLI connect
2024-10-15 16:07:33 -07:00
Tomas Valenta
71ec17530e
Fix CLI code snippets
2024-10-14 16:28:29 -07:00
Tomas Valenta
a0bcaa5646
Update CLI template build example snippet
2024-10-12 15:43:58 -07:00
Tomas Valenta
125cda6cc7
Add flag for killing all running sandboxes to the CLI
2024-10-12 13:39:42 -07:00
Jakub Novak
1d5ae30312
Merge 'main'
2024-09-26 08:39:05 +02:00
0div
b70975fee1
address PR comments
2024-09-20 16:14:53 +02:00
0div
8812b42d46
address PR comments
2024-09-20 16:03:50 +02:00
0div
f54657726c
improve clearning of the md content output
2024-09-20 12:35:31 +02:00
0div
f44d1f830d
created api ref generator script from parsing commands into md with the new -cmd2md option
2024-09-20 12:11:01 +02:00
Jakub Novak
791ca585a8
Fix imports
2024-09-13 10:11:43 +02:00
Jakub Novak
16f0512b7e
Apply prettier
2024-09-13 10:04:26 +02:00
Jakub Novak
731a109fc6
Add Ctrl+C handling in terminal
2024-09-13 10:00:20 +02:00
Jakub Novak
80ae7f452a
Rewrite terminal in CLI
2024-09-13 10:00:20 +02:00