Skip to content

Commit 225b8df

Browse files
committed
Revert "Documentation edits made through Mintlify web editor"
This reverts commit 457fe2c.
1 parent 457fe2c commit 225b8df

File tree

1 file changed

+24
-33
lines changed

1 file changed

+24
-33
lines changed

template/quickstart.mdx

Lines changed: 24 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -10,50 +10,47 @@ a start command that will be already running when you spawn the sandbox.
1010
This way, you can have fully configured sandboxes with running processes ready to use with zero wait time for your users.
1111

1212
There are two ways how you can start creating a new template:
13-
1413
- using the CLI
1514
- manually using the SDK
1615

1716
## CLI
1817

1918
<Warning>
20-
This CLI command is not yet available, it will be released soon.
19+
This CLI command is not yet available, it will be released soon.
2120
</Warning>
2221

2322
You can use the E2B CLI to create a new template.
2423

2524
<Steps>
26-
<Step title="Install the E2B CLI">
27-
Install the latest version of the [E2B CLI](https://e2b.dev/docs/cli)
28-
</Step>
29-
<Step title="Create a new template">
25+
<Step title="Install the E2B CLI">
26+
Install the latest version of the [E2B CLI](https://e2b.dev/docs/cli)
27+
</Step>
28+
<Step title="Create a new template">
3029
```bash
31-
e2b template init-v2
30+
e2b template init
3231
```
33-
</Step>
34-
<Step title="Follow the prompts">
35-
Follow the prompts to create a new template.
36-
</Step>
37-
<Step title="Done">
38-
Check the generated `README.md` file to see how to build and use your new template.
39-
</Step>
32+
</Step>
33+
<Step title="Follow the prompts">
34+
Follow the prompts to create a new template.
35+
</Step>
36+
<Step title="Done">
37+
Check the generated `README.md` file to see how to build and use your new template.
38+
</Step>
4039
</Steps>
4140

4241
## Manual
4342

4443
### Install the packages
45-
4644
<Warning>
47-
Requires the E2B version at least 2.1.0
45+
Requires the E2B version at least 2.1.0
4846
</Warning>
4947

50-
<CodeGroup>
48+
<CodeGroup dropdown>
5149

5250
```typescript Terminal
5351
npm install e2b dotenv
5452
```
5553

56-
5754
```python Terminal
5855
pip install e2b dotenv
5956
```
@@ -67,10 +64,9 @@ E2B_API_KEY=e2b_***
6764
```
6865

6966
### Create a new template file
70-
7167
Create a template file with the following name and content
7268

73-
<CodeGroup>
69+
<CodeGroup dropdown>
7470

7571
```typescript template.ts
7672
import { Template, waitForTimeout } from "e2b";
@@ -83,7 +79,6 @@ export const template = Template()
8379
.setStartCmd("echo $HELLO", waitForTimeout(5_000));
8480
```
8581

86-
8782
```python template.py
8883
from e2b import Template, wait_for_timeout
8984

@@ -100,9 +95,10 @@ template = (
10095

10196
</CodeGroup>
10297

98+
10399
### Create a development build script
104100

105-
<CodeGroup>
101+
<CodeGroup dropdown>
106102

107103
```typescript build.dev.ts
108104
import "dotenv/config";
@@ -117,7 +113,6 @@ Template.build(template, {
117113
});
118114
```
119115

120-
121116
```python build_dev.py
122117
from dotenv import load_dotenv
123118
from e2b import Template
@@ -138,13 +133,12 @@ Template.build(
138133

139134
Build the development template
140135

141-
<CodeGroup>
136+
<CodeGroup dropdown>
142137

143138
```typescript Terminal
144139
npx tsx build.dev.ts
145140
```
146141

147-
148142
```python Terminal
149143
python build_dev.py
150144
```
@@ -153,7 +147,7 @@ python build_dev.py
153147

154148
### Create a production build script
155149

156-
<CodeGroup>
150+
<CodeGroup dropdown>
157151

158152
```typescript build.prod.ts
159153
import "dotenv/config";
@@ -168,7 +162,6 @@ Template.build(template, {
168162
});
169163
```
170164

171-
172165
```python build_prod.py
173166
from dotenv import load_dotenv
174167
from e2b import Template
@@ -189,13 +182,12 @@ Template.build(
189182

190183
Build the production template
191184

192-
<CodeGroup>
185+
<CodeGroup dropdown>
193186

194187
```typescript Terminal
195188
npx tsx build.prod.ts
196189
```
197190

198-
199191
```python Terminal
200192
python build_prod.py
201193
```
@@ -204,7 +196,7 @@ python build_prod.py
204196

205197
## Create a new Sandbox from the Template
206198

207-
<CodeGroup>
199+
<CodeGroup dropdown>
208200

209201
```typescript
210202
import "dotenv/config";
@@ -217,7 +209,6 @@ const sandbox = await Sandbox.create("template-tag-dev");
217209
const sandbox = await Sandbox.create("template-tag");
218210
```
219211

220-
221212
```python
222213
from dotenv import load_dotenv
223214
from e2b import Sandbox
@@ -234,5 +225,5 @@ sbx = Sandbox(template="template-tag")
234225
</CodeGroup>
235226

236227
<Note>
237-
The template alias is the identifier that can be used to create a new Sandbox.
238-
</Note>
228+
The template alias is the identifier that can be used to create a new Sandbox.
229+
</Note>

0 commit comments

Comments
 (0)