Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Update CLI readme
Tomas Valentafb919b1ab9f5
diff --git a/packages/cli/README.md b/packages/cli/README.mdindex cfce3624e..7b8ad9d07 100644--- a/packages/cli/README.md+++ b/packages/cli/README.md@@ -6,12 +6,12 @@E2B CLI</h1>-This CLI tool allows you to build and manage E2B sandbox templates from your-terminal.+This CLI tool allows you to build and manage E2B sandbox templates.-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 the E2B SDK and run your AI agents.+You define your sandbox template with a `e2b.Dockerfile` and then use the CLI `e2b template build` to build the sandbox template.+You can then create a sandbox from template with E2B SDKs and run your AI agents and execute code.-The `Dockerfile` is the same as for Docker, but you can only use **Debian-based Linux distros** as the base image.+The `e2b.Dockerfile` is the same as for Docker, but you can only use **Debian-based Linux distros** as the base image.## Installation@@ -27,24 +27,24 @@ e2b --help## Getting started-1. Authenticate with `e2b auth login`.+1. Authenticate with `e2b auth login`> To authenticate without the ability to open the browser, provide> `E2B_ACCESS_TOKEN` as an environment variable. Get your `E2B_ACCESS_TOKEN`> from [e2b.dev/docs](https://e2b.dev/docs). Then use the CLI like this:> `E2B_ACCESS_TOKEN=sk_e2b_... e2b build`.-2. 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:+2. Create a `e2b.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:```DockerfileFROM ubuntu:22.04```-3. Run `e2b build` inside the directory with the `Dockerfile` to create and build the sandbox template. You will get the _*template ID*_ that you use for connecting to the sandbox via SDKs and for rebuilding the sandbox template.+3. Run `e2b template build` inside the directory with the `e2b.Dockerfile` to create and build the sandbox template. You will get the _*template ID*_ that you use for create the sandbox from template with E2B SDKs. The `e2b.toml` file will be created automatically in the same directory-4. Use the **template ID** that you got during the `e2b build` with the Python or JS/TS SDK as the `id` to create sandbox.+4. Use the **template ID** that you got during the `e2b template build` with the Python or JS/TS SDK as the `id` to create sandbox-5. Rebuild the sandbox template by running `e2b build <id-of-the-template>` in the directory with the `Dockerfile`.+5. Rebuild the sandbox template by running `e2b template build` in the directory with the `e2b.Dockerfile` and `e2b.toml` files## Commands@@ -54,4 +54,4 @@ directory where the command will be called, without the need to call `cd`.```md-V, --version Display E2B CLI version-h, --help display help for command-```\ No newline at end of file+```