99b9ed768d
Adds a deprecated `spawn` command to the CLI, ensuring backward compatibility and guiding users toward the preferred `create` command. ``` $ e2b sandbox Usage: index sandbox|sbx [options] [command] work with sandboxes Options: -h, --help display help for command Commands: connect|cn <sandboxID> connect terminal to already running sandbox list|ls [options] list all sandboxes, by default it list only running ones kill|kl [options] [sandboxID] kill sandbox create|cr [options] [template] create sandbox and connect terminal to it logs|lg [options] <sandboxID> show logs for sandbox metrics|mt [options] <sandboxID> show metrics for sandbox help [command] display help for command ``` ``` $ sbx sp base Warning: The 'spawn' command is deprecated and will be removed in future releases. Please use 'e2b sandbox create' instead. Terminal connecting to template base with sandbox ID in897x2dqs7aws8h1x0in ```
E2B CLI
This CLI tool allows you to build manager your running E2B sandbox and sandbox templates. Learn more in our documentation.
1. Install the CLI
Using Homebrew (on macOS)
brew install e2b
Using NPM
npm install -g @e2b/cli
2. Authenticate
e2b auth login
Note
To authenticate without the ability to open the browser, provide
E2B_ACCESS_TOKENas an environment variable. You can find your token in Account Settings under the Team selector at e2b.dev/dashboard. Then use the CLI like this:E2B_ACCESS_TOKEN=sk_e2b_... e2b template build.
Important
Note the distinction between
E2B_ACCESS_TOKENandE2B_API_KEY.
3. Check out docs
Visit our CLI documentation to learn more.
