Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Update docs
Vasek Mlejnsky2a83ef2494f9
diff --git a/apps/web/src/app/(docs)/docs/cli/auth/page.mdx b/apps/web/src/app/(docs)/docs/cli/auth/page.mdxnew file mode 100644index 000000000..3bcf11874--- /dev/null+++ b/apps/web/src/app/(docs)/docs/cli/auth/page.mdx@@ -0,0 +1,9 @@+# Authentication in CLI++You must authenticate with E2B CLI before using it. Run the following command to sign in into your E2B account:++<CodeGroup isTerminalCommand>+```bash+e2b auth login+```+</CodeGroup>\ No newline at end of filediff --git a/apps/web/src/app/(docs)/docs/cli/list-sandboxes/page.mdx b/apps/web/src/app/(docs)/docs/cli/list-sandboxes/page.mdxnew file mode 100644index 000000000..2015c443a--- /dev/null+++ b/apps/web/src/app/(docs)/docs/cli/list-sandboxes/page.mdx@@ -0,0 +1,9 @@+# List running sandboxes++You can list all running sandboxes using the following command:++<CodeGroup isTerminalCommand>+```bash+e2b sandbox list+```+</CodeGroup>diff --git a/apps/web/src/app/(docs)/docs/cli/page.mdx b/apps/web/src/app/(docs)/docs/cli/page.mdxnew file mode 100644index 000000000..ff9ec7aa8--- /dev/null+++ b/apps/web/src/app/(docs)/docs/cli/page.mdx@@ -0,0 +1,13 @@+# E2B CLI++E2B CLI is a command line tool that allows you to list, kill running sandboxes, and manage [sandbox templates](/docs/sandbox-templates).++## Installation++You can install E2B CLI using the following command:++<CodeGroup isTerminalCommand>+```bash+npm i -g @e2b/cli+```+</CodeGroup>diff --git a/apps/web/src/app/(docs)/docs/cli/shutdown-sandboxes/page.mdx b/apps/web/src/app/(docs)/docs/cli/shutdown-sandboxes/page.mdxnew file mode 100644index 000000000..2c33d0d2f--- /dev/null+++ b/apps/web/src/app/(docs)/docs/cli/shutdown-sandboxes/page.mdx@@ -0,0 +1,23 @@+# Shutdown running sandboxes++You can shutdown single or all running sandboxes with the E2B CLI.++## Shutdown single sandbox++To shutdown a single sandbox, run the following command:++<CodeGroup isTerminalCommand>+```bash+e2b sandbox kill <sandbox-id>+```+</CodeGroup>++## Shutdown all sandboxes++To shutdown all running sandboxes, run the following command:++<CodeGroup isTerminalCommand>+```bash+e2b sandbox kill --all+```+</CodeGroup>diff --git a/apps/web/src/components/Navigation/routes.tsx b/apps/web/src/components/Navigation/routes.tsxindex e5507fe26..5242acf9a 100644--- a/apps/web/src/components/Navigation/routes.tsx+++ b/apps/web/src/components/Navigation/routes.tsx@@ -423,19 +423,23 @@ export const routes: NavGroup[] = [// ]// },{- title: '* CLI',+ title: 'CLI',items: [{- title: '* Installation',- href: '/docs/cli/install',+ title: 'Installation',+ href: '/docs/cli',},{- title: '* List running sandboxes',- href: '/docs/cli/list',+ title: 'Authentication',+ href: '/docs/cli/auth',},{- title: '* Shutdown all running sandboxes',- href: '/docs/cli/kill-all',+ title: 'List running sandboxes',+ href: '/docs/cli/list-sandboxes',+ },+ {+ title: '* Shutdown running sandboxes',+ href: '/docs/cli/shutdown-sandbox',},]},