Skip to content

Commit ad65923

Browse files
authored
Merge branch 'main' into working-directory-set-in-dockerfile-is-overwritten-by-eng-3330
2 parents c1cb495 + 9577cf5 commit ad65923

File tree

96 files changed

+13516
-1694
lines changed

Some content is hidden

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

96 files changed

+13516
-1694
lines changed

.changeset/modern-rules-shave.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@e2b/python-sdk': patch
3+
---
4+
5+
remove unnecessary default headers from Python API client

.changeset/tasty-walls-move.md

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

.editorconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
root = true
2+
3+
[*.py]
4+
indent_size = 4

.github/workflows/cli_tests.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ permissions:
1414

1515
jobs:
1616
test:
17-
defaults:
18-
run:
19-
working-directory: ./packages/cli
2017
name: CLI - Build
2118
runs-on: ubuntu-22.04
2219
steps:
@@ -32,7 +29,6 @@ jobs:
3229

3330
- name: Install pnpm
3431
uses: pnpm/action-setup@v4
35-
id: pnpm-install
3632
with:
3733
version: '${{ env.TOOL_VERSION_PNPM }}'
3834

@@ -47,15 +43,20 @@ jobs:
4743
- name: Configure pnpm
4844
run: |
4945
pnpm config set auto-install-peers true
50-
pnpm config set exclude-links-from-lockfile true
5146
5247
- name: Install dependencies
5348
run: pnpm install --frozen-lockfile
5449

55-
- name: Test build
50+
- name: Build the SDK (pre-requisite for the tests)
5651
run: pnpm build
52+
working-directory: ./packages/js-sdk
53+
54+
- name: Build the CLI
55+
run: pnpm build
56+
working-directory: ./packages/cli
5757

5858
- name: Run tests
5959
run: pnpm test
60+
working-directory: ./packages/cli
6061
env:
6162
E2B_API_KEY: ${{ secrets.E2B_API_KEY }}

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.6.4",
45+
"e2b": "^2.7.0",
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+

0 commit comments

Comments
 (0)