0.5.2 • Published 18 hours ago

@e2b/cli v0.5.2

Weekly downloads
-
License
MIT
Repository
github
Last release
18 hours ago

This CLI tool allows you to build and manage E2B sandbox templates from your terminal.

You define your sandbox template in a Dockerfile and then use the CLI to build the sandbox template. You can then connect to the sandbox template via SDKs and run your AI agents.

The Dockerfile is the same as for Docker, but you can only use Debian based linux distros as the base image.

Installation

npm install -g @e2b/cli

Then you can use the CLI like this:

e2b --help

Getting started

  1. Authenticate with e2b login

To authenticate without the ability to open browser, you can provide E2B_ACCESS_TOKEN as an environment variable. Get your E2B_ACCESS_TOKEN from e2b.dev/docs. Then use the CLI like this: E2B_ACCESS_TOKEN=sk_e2b_... e2b build

  1. Create a Dockerfile where you describe how your custom E2B sandbox template should look like. Majority of Debian based linux distros should work as the base image. Here is an example of a minimal Dockerfile for E2B sandbox template:
FROM ubuntu:22.04
  1. Run e2b build inside the directory with the Dockerfile to create and build the sandbox template. You will get template ID that you use for connecting to the sandbox via SDKs and for rebuilding the sandbox template

  2. Use the template ID that you got during the e2b build with the Python or JS/TS SDK as the id to create sandbox

  3. Rebuild the sandbox template by running e2b build <id-of-the-template> in the directory with the Dockerfile

Commands

All commands can be called with a --path <path-to-dir> flag that changes the directory where the command will be called, without the need to call cd.

-V, --version    Display E2B CLI version
-h, --help       display help for command
0.5.2

18 hours ago

0.5.0

2 days ago

0.5.1

1 day ago

0.4.8

7 days ago

0.4.5

7 days ago

0.4.7

7 days ago

0.4.6

7 days ago

0.4.4

1 month ago

0.4.3

1 month ago

0.4.2

1 month ago

0.4.1

1 month ago

0.4.0

1 month ago

0.3.5

2 months ago

0.3.4

2 months ago

0.3.3

2 months ago

0.3.0

2 months ago

0.3.2

2 months ago

0.3.1

2 months ago

0.2.3

3 months ago

0.2.2

3 months ago

0.2.1

3 months ago

0.2.0

3 months ago

0.1.22

3 months ago

0.1.23

3 months ago

0.1.21

3 months ago

0.1.20

5 months ago

0.1.19

5 months ago

0.1.18

5 months ago

0.1.17

5 months ago

0.1.16

5 months ago

0.1.15

5 months ago

0.1.14

5 months ago

0.1.13

6 months ago

0.1.12

6 months ago

0.1.11

6 months ago

0.1.10

6 months ago

0.1.9

6 months ago

0.1.8

6 months ago

0.1.7

6 months ago

0.1.6

6 months ago

0.1.5

6 months ago

0.1.4

6 months ago

0.1.3

6 months ago

0.1.2

6 months ago

0.1.1

6 months ago

0.1.0

6 months ago

0.0.16

6 months ago

0.0.15

6 months ago

0.0.14

6 months ago

0.0.13

7 months ago

0.0.12

7 months ago

0.0.11

7 months ago

0.0.10

7 months ago

0.0.9

7 months ago

0.0.8

8 months ago

0.0.7

8 months ago

0.0.6

8 months ago

0.0.5

8 months ago

0.0.4

8 months ago

0.0.3

8 months ago

0.0.2

8 months ago

0.0.1

8 months ago