CLI for managing e2b sandbox templates
npm install @e2b/cli

This CLI tool allows you to build manager your running E2B sandbox and sandbox templates. Learn more in our documentation.
Using Homebrew (on macOS)
``bash`
brew install e2b
Using NPM
`bash`
npm install -g @e2b/cli
`bash`
e2b auth login
> [!NOTE]
> To authenticate without the ability to open the browser, provide
> E2B_ACCESS_TOKEN as an environment variable. You can find your tokenE2B_ACCESS_TOKEN=sk_e2b_... e2b template build
> in Account Settings under the Team selector at e2b.dev/dashboard. Then use the CLI like this:
> .
> [!IMPORTANT]
> Note the distinction between E2B_ACCESS_TOKEN and E2B_API_KEY`.
Visit our CLI documentation to learn more.