Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@e2b/cli

Package Overview
Dependencies
Maintainers
3
Versions
98
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@e2b/cli

CLI for managing e2b environments

  • 0.0.12
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.2K
increased by15.72%
Maintainers
3
Weekly downloads
 
Created
Source

E2B CLI

Docs | Website | Discord | Twitter
Discord community server e2b Twitter

E2B (english2bits) is a cloud operating system for AI agents.

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 environment should look like

  2. Run e2b build inside the directory with the Dockerfile to create and build the environment. You will get environment ID that you use for connecting to the environment instances via SDKs and for rebuilding the environment

  3. Use the environment ID that you got during the e2b build with the Python or JS/TS SDK as the id to create environment instances

  4. Rebuild the environment by running e2b build <id-of-the-environment> 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
Usage: e2b env [options] [command]

Manage e2b environments

Options:
  -h, --help               display help for command

Commands:
  build|bd [options] [id]  Build environment
  list|ls                  List environments
  shell|sh <id>            Connect terminal to environment
  help [command]           display help for command

FAQs

Package last updated on 15 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc