Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion apps/web/src/app/(docs)/docs/cli/page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ E2B CLI is a command line tool that allows you to list, kill running sandboxes,

## Installation

**Using Homebrew (on macOS)**

<CodeGroup isTerminalCommand>
```bash
brew install e2b
```
</CodeGroup>

**Using NPM**

You can install E2B CLI using the following command:

<CodeGroup isTerminalCommand>
Expand All @@ -14,7 +24,7 @@ npm i -g @e2b/cli

### Beta CLI

The latest beta version of the CLI can be installed using the following command:
The latest beta version of the CLI can be installed from NPM using the following command:

<CodeGroup isTerminalCommand>
```bash
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,17 @@ Custom sandbox template is a Docker image that we automatically convert to a san


### 1. Install E2B CLI
Install the [E2B CLI](https://npmjs.com/package/@e2b/cli) globally on your machine with NPM.

**Using Homebrew (on macOS)**

<CodeGroup isTerminalCommand>
```bash
brew install e2b
```
</CodeGroup>

**Using NPM**

<CodeGroup isTerminalCommand>
```bash
npm i -g @e2b/cli
Expand Down
14 changes: 12 additions & 2 deletions apps/web/src/app/(docs)/docs/sandbox-template/page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,20 @@ You can then use this template ID to create a new sandbox with the SDK based on


### 1. Install E2B CLI
Install E2B CLI with npm:

**Using Homebrew (on macOS)**

<CodeGroup isTerminalCommand>
```bash
brew install e2b
```
</CodeGroup>

**Using NPM**

<CodeGroup isTerminalCommand>
```bash
npm i @e2b/cli
npm i -g @e2b/cli
```
</CodeGroup>

Expand Down
11 changes: 10 additions & 1 deletion packages/cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ This CLI tool allows you to build manager your running E2B sandbox and sandbox t

### 1. Install the CLI

**Using Homebrew (on macOS)**

```bash
brew install e2b
```

**Using NPM**

```bash
npm install -g @e2b/cli
```
Expand All @@ -18,7 +26,7 @@ npm install -g @e2b/cli
e2b auth login
```

> [!NOTE]
> [!NOTE]
> To authenticate without the ability to open the browser, provide
> `E2B_ACCESS_TOKEN` as an environment variable. Get your `E2B_ACCESS_TOKEN`
> from the Personal tab at [e2b.dev/dashboard](https://e2b.dev/dashboard). Then use the CLI like this:
Expand All @@ -28,4 +36,5 @@ e2b auth login
> Note the distinction between `E2B_ACCESS_TOKEN` and `E2B_API_KEY`.

### 3. Check out docs

Visit our [CLI documentation](https://e2b.dev/docs) to learn more.