Skip to content

Commit 67b0e64

Browse files
committed
add cli init guide
1 parent cddb148 commit 67b0e64

File tree

1 file changed

+32
-1
lines changed

1 file changed

+32
-1
lines changed

template/quickstart.mdx

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,37 @@ description: "Start with custom sandbox templates"
44
icon: "rocket"
55
---
66

7+
E2B templates allow you to define custom sandboxes.
8+
You can define the base image, environment variables, files to copy, commands to run, and
9+
a start command that will be already running when you spawn the sandbox.
10+
This way, you can have fully configured sandboxes with running processes ready to use with zero wait time for your users.
11+
12+
There are two ways how you can start creating a new template:
13+
- using the CLI
14+
- manually using the SDK
15+
16+
## CLI
17+
18+
You can use the E2B CLI to create a new template.
19+
20+
<Steps>
21+
<Step title="Install the E2B CLI">
22+
Install the latest version of the [E2B CLI](https://e2b.dev/docs/cli)
23+
</Step>
24+
<Step title="Create a new template">
25+
```bash
26+
e2b template init
27+
```
28+
</Step>
29+
<Step title="Follow the prompts">
30+
Follow the prompts to create a new template.
31+
</Step>
32+
<Step title="Done">
33+
Check the generated `README.md` file to see how to build and use your new template.
34+
</Step>
35+
</Steps>
36+
37+
## Manual
738

839
### Install the packages
940
<Warning>
@@ -159,7 +190,7 @@ python build_prod.py
159190

160191
</CodeGroup>
161192

162-
### Create a new Sandbox from the Template
193+
## Create a new Sandbox from the Template
163194

164195
<CodeGroup dropdown>
165196

0 commit comments

Comments
 (0)