Skip to content

Commit e8e26a8

Browse files
committed
Merge remote-tracking branch 'origin/main' into support-local-envd-dev
# Conflicts: # packages/cli/package.json # pnpm-lock.yaml
2 parents 75b134e + 45d782f commit e8e26a8

File tree

195 files changed

+55117
-1326
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

195 files changed

+55117
-1326
lines changed

.changeset/slimy-bears-sell.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

apps/web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"autoprefixer": "^10.4.7",
4343
"class-variance-authority": "^0.7.0",
4444
"clsx": "^1.2.1",
45-
"e2b": "^2.5.0",
45+
"e2b": "^2.6.4",
4646
"fast-glob": "^3.3.0",
4747
"fast-xml-parser": "4.4.1",
4848
"flexsearch": "^0.7.31",
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
## e2b auth
2+
3+
4+
authentication commands
5+
6+
### Usage
7+
8+
```bash
9+
e2b auth [options] [command]
10+
```
11+
## e2b auth login
12+
13+
14+
log in to CLI
15+
16+
### Usage
17+
18+
```bash
19+
e2b auth login [options]
20+
```
21+
22+
23+
## e2b auth logout
24+
25+
26+
log out of CLI
27+
28+
### Usage
29+
30+
```bash
31+
e2b auth logout [options]
32+
```
33+
34+
35+
## e2b auth info
36+
37+
38+
get information about the current user
39+
40+
### Usage
41+
42+
```bash
43+
e2b auth info [options]
44+
```
45+
46+
47+
## e2b auth configure
48+
49+
50+
configure user
51+
52+
### Usage
53+
54+
```bash
55+
e2b auth configure [options]
56+
```
57+
58+
Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
## e2b sandbox
2+
3+
4+
work with sandboxes
5+
6+
### Usage
7+
8+
```bash
9+
e2b sandbox [options] [command]
10+
```
11+
## e2b sandbox connect
12+
13+
14+
connect terminal to already running sandbox
15+
16+
### Usage
17+
18+
```bash
19+
e2b sandbox connect [options] <sandboxID>
20+
```
21+
22+
23+
## e2b sandbox list
24+
25+
26+
list all sandboxes, by default it list only running ones
27+
28+
### Usage
29+
30+
```bash
31+
e2b sandbox list [options]
32+
```
33+
34+
### Options
35+
36+
37+
- `-s, --state <state>: filter by state, eg. running, paused. Defaults to running `
38+
- `-m, --metadata <metadata>: filter by metadata, eg. key1=value1 `
39+
- `-l, --limit <limit>: limit the number of sandboxes returned `
40+
- `-f, --format <format>: output format, eg. json, pretty `
41+
42+
43+
## e2b sandbox kill
44+
45+
46+
kill sandbox
47+
48+
### Usage
49+
50+
```bash
51+
e2b sandbox kill [options] [sandboxIDs...]
52+
```
53+
54+
### Options
55+
56+
57+
- `-a, --all: kill all sandboxes `
58+
- `-s, --state <state>: when used with -a/--all flag, filter by state, eg. running, paused. Defaults to running `
59+
- `-m, --metadata <metadata>: when used with -a/--all flag, filter by metadata, eg. key1=value1 `
60+
61+
62+
## e2b sandbox create
63+
64+
65+
create sandbox and connect terminal to it
66+
67+
### Usage
68+
69+
```bash
70+
e2b sandbox create [options] [template]
71+
```
72+
73+
### Options
74+
75+
76+
- `-p, --path <path>: change root directory where command is executed to <path> directory `
77+
- `--config <e2b-toml>: specify path to the E2B config toml. By default E2B tries to find ./e2b.toml in root directory. `
78+
79+
80+
## e2b sandbox spawn
81+
82+
83+
create sandbox and connect terminal to it
84+
85+
### Usage
86+
87+
```bash
88+
e2b sandbox spawn [options] [template]
89+
```
90+
91+
### Options
92+
93+
94+
- `-p, --path <path>: change root directory where command is executed to <path> directory `
95+
- `--config <e2b-toml>: specify path to the E2B config toml. By default E2B tries to find ./e2b.toml in root directory. `
96+
97+
98+
## e2b sandbox logs
99+
100+
101+
show logs for sandbox
102+
103+
### Usage
104+
105+
```bash
106+
e2b sandbox logs [options] <sandboxID>
107+
```
108+
109+
### Options
110+
111+
112+
- `--level <level>: filter logs by level (DEBUG, INFO, WARN, ERROR). The logs with the higher levels will be also shown. [default: INFO]`
113+
- `-f, --follow: keep streaming logs until the sandbox is closed `
114+
- `--format <format>: specify format for printing logs (json, pretty) [default: pretty]`
115+
- `--loggers [loggers]: filter logs by loggers. Specify multiple loggers by separating them with a comma. `
116+
117+
118+
## e2b sandbox metrics
119+
120+
121+
show metrics for sandbox
122+
123+
### Usage
124+
125+
```bash
126+
e2b sandbox metrics [options] <sandboxID>
127+
```
128+
129+
### Options
130+
131+
132+
- `-f, --follow: keep streaming metrics until the sandbox is closed `
133+
- `--format <format>: specify format for printing metrics (json, pretty) [default: pretty]`
134+
135+
Lines changed: 180 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,180 @@
1+
## e2b template
2+
3+
4+
manage sandbox templates
5+
6+
### Usage
7+
8+
```bash
9+
e2b template [options] [command]
10+
```
11+
## e2b template create
12+
13+
14+
build Dockerfile as a Sandbox template. This command reads a Dockerfile and builds it directly.
15+
16+
### Usage
17+
18+
```bash
19+
e2b template create [options] <template-name>
20+
```
21+
22+
### Options
23+
24+
25+
- `-p, --path <path>: change root directory where command is executed to <path> directory `
26+
- `-d, --dockerfile <file>: specify path to Dockerfile. By default E2B tries to find e2b.Dockerfile or Dockerfile in root directory. `
27+
- `-c, --cmd <start-command>: specify command that will be executed when the sandbox is started. `
28+
- `--ready-cmd <ready-command>: specify command that will need to exit 0 for the template to be ready. `
29+
- `--cpu-count <cpu-count>: specify the number of CPUs that will be used to run the sandbox. The default value is 2. `
30+
- `--memory-mb <memory-mb>: specify the amount of memory in megabytes that will be used to run the sandbox. Must be an even number. The default value is 512. `
31+
- `--no-cache: skip cache when building the template. `
32+
33+
34+
## e2b template build
35+
36+
37+
build sandbox template defined by ./e2b.Dockerfile or ./Dockerfile in root directory. By default the root directory is the current working directory. This command also creates e2b.toml config.
38+
39+
### Usage
40+
41+
```bash
42+
e2b template build [options] [template]
43+
```
44+
45+
### Options
46+
47+
48+
- `-p, --path <path>: change root directory where command is executed to <path> directory `
49+
- `-d, --dockerfile <file>: specify path to Dockerfile. By default E2B tries to find e2b.Dockerfile or Dockerfile in root directory. `
50+
- `-n, --name <template-name>: specify sandbox template name. You can use the template name to start the sandbox with SDK. The template name must be lowercase and contain only letters, numbers, dashes and underscores. `
51+
- `-c, --cmd <start-command>: specify command that will be executed when the sandbox is started. `
52+
- `--ready-cmd <ready-command>: specify command that will need to exit 0 for the template to be ready. `
53+
- `-t, --team <team-id>: specify the team ID that the operation will be associated with. You can find team ID in the team settings in the E2B dashboard (https://e2b.dev/dashboard?tab=team). `
54+
- `--config <e2b-toml>: specify path to the E2B config toml. By default E2B tries to find ./e2b.toml in root directory. `
55+
- `--cpu-count <cpu-count>: specify the number of CPUs that will be used to run the sandbox. The default value is 2. `
56+
- `--memory-mb <memory-mb>: specify the amount of memory in megabytes that will be used to run the sandbox. Must be an even number. The default value is 512. `
57+
- `--build-arg <args...>: specify additional build arguments for the build command. The format should be <varname>=<value>. `
58+
- `--no-cache: skip cache when building the template. `
59+
60+
61+
## e2b template list
62+
63+
64+
list sandbox templates
65+
66+
### Usage
67+
68+
```bash
69+
e2b template list [options]
70+
```
71+
72+
### Options
73+
74+
75+
- `-t, --team <team-id>: specify the team ID that the operation will be associated with. You can find team ID in the team settings in the E2B dashboard (https://e2b.dev/dashboard?tab=team). `
76+
- `-f, --format <format>: output format, eg. json, pretty `
77+
78+
79+
## e2b template init
80+
81+
82+
initialize a new sandbox template using the SDK
83+
84+
### Usage
85+
86+
```bash
87+
e2b template init [options]
88+
```
89+
90+
### Options
91+
92+
93+
- `-p, --path <path>: change root directory where command is executed to <path> directory `
94+
- `-n, --name <name>: template name (alias) `
95+
- `-l, --language <language>: target language: typescript, python-sync, python-async `
96+
97+
98+
## e2b template delete
99+
100+
101+
delete sandbox template and e2b.toml config
102+
103+
### Usage
104+
105+
```bash
106+
e2b template delete [options] [template]
107+
```
108+
109+
### Options
110+
111+
112+
- `-p, --path <path>: change root directory where command is executed to <path> directory `
113+
- `--config <e2b-toml>: specify path to the E2B config toml. By default E2B tries to find ./e2b.toml in root directory. `
114+
- `-s, --select: select sandbox template from interactive list `
115+
- `-t, --team <team-id>: specify the team ID that the operation will be associated with. You can find team ID in the team settings in the E2B dashboard (https://e2b.dev/dashboard?tab=team). `
116+
- `-y, --yes: skip manual delete confirmation `
117+
118+
119+
## e2b template publish
120+
121+
122+
publish sandbox template
123+
124+
### Usage
125+
126+
```bash
127+
e2b template publish [options] [template]
128+
```
129+
130+
### Options
131+
132+
133+
- `-p, --path <path>: change root directory where command is executed to <path> directory `
134+
- `--config <e2b-toml>: specify path to the E2B config toml. By default E2B tries to find ./e2b.toml in root directory. `
135+
- `-s, --select: select sandbox template from interactive list `
136+
- `-t, --team <team-id>: specify the team ID that the operation will be associated with. You can find team ID in the team settings in the E2B dashboard (https://e2b.dev/dashboard?tab=team). `
137+
- `-y, --yes: skip manual publish confirmation `
138+
139+
140+
## e2b template unpublish
141+
142+
143+
unpublish sandbox template
144+
145+
### Usage
146+
147+
```bash
148+
e2b template unpublish [options] [template]
149+
```
150+
151+
### Options
152+
153+
154+
- `-p, --path <path>: change root directory where command is executed to <path> directory `
155+
- `--config <e2b-toml>: specify path to the E2B config toml. By default E2B tries to find ./e2b.toml in root directory. `
156+
- `-s, --select: select sandbox template from interactive list `
157+
- `-t, --team <team-id>: specify the team ID that the operation will be associated with. You can find team ID in the team settings in the E2B dashboard (https://e2b.dev/dashboard?tab=team). `
158+
- `-y, --yes: skip manual unpublish confirmation `
159+
160+
161+
## e2b template migrate
162+
163+
164+
migrate e2b.Dockerfile and e2b.toml to new Template SDK format
165+
166+
### Usage
167+
168+
```bash
169+
e2b template migrate [options]
170+
```
171+
172+
### Options
173+
174+
175+
- `-d, --dockerfile <file>: specify path to Dockerfile. Defaults to e2b.Dockerfile `
176+
- `--config <e2b-toml>: specify path to the E2B config toml. By default E2B tries to find ./e2b.toml in root directory. `
177+
- `-l, --language <language>: specify target language: typescript, python-sync, python-async `
178+
- `-p, --path <path>: change root directory where command is executed to <path> directory `
179+
180+

0 commit comments

Comments
 (0)