Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@e2b/cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
E2B CLI
Docs | Website | Discord | Twitter
E2B (english2bits) is a cloud operating system for AI agents.
Installation
npm install -g @e2b/cliThen you can use the CLI like this:
e2b --helpGetting started
- Authenticate with
e2b login
To authenticate without the ability to open browser, you can provide
E2B_ACCESS_TOKENas an environment variable. Get yourE2B_ACCESS_TOKENfrom e2b.dev/docs. Then use the CLI like this:E2B_ACCESS_TOKEN=sk_e2b_... e2b build
Create a
Dockerfilewhere you describe how your custom E2B environment should look likeRun
e2b buildinside the directory with theDockerfileto 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 environmentUse the environment ID that you got during the
e2b buildwith the Python or JS/TS SDK as theidto create environment instancesRebuild the environment by running
e2b build <id-of-the-environment>in the directory with theDockerfile
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 commandUsage: 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