Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Update docs
Tomas Valenta5e83cc5c0f44
diff --git a/apps/docs/src/app/sandbox/templates/start-cmd/page.mdx b/apps/docs/src/app/sandbox/templates/start-cmd/page.mdxindex c31e1ee72..d29611376 100644--- a/apps/docs/src/app/sandbox/templates/start-cmd/page.mdx+++ b/apps/docs/src/app/sandbox/templates/start-cmd/page.mdx@@ -1,6 +1,7 @@# Start CommandCustom sandboxes allow you to specify a command that will be running when the sandbox is spawned.+This way you can run a command that will start your app, or run a command that will start a specific process.@@ -21,7 +22,9 @@ You can check the logs from the start command by using the SDKs:import { Sandbox } from '@e2b/sdk'// Spawn your custom sandbox-const sandbox = await Sandbox.create({ id: 'my-agent-sandbox' })+const sandbox = await Sandbox.create({+ id: 'my-agent-sandbox',+})// Get the stdout and stderr from the start commandconst { stderr, stdout } = await sandbox.startCmd // $HighlightLinediff --git a/apps/docs/src/components/Navigation/routes.tsx b/apps/docs/src/components/Navigation/routes.tsxindex 54ffa87d6..75d4de446 100644--- a/apps/docs/src/components/Navigation/routes.tsx+++ b/apps/docs/src/components/Navigation/routes.tsx@@ -16,7 +16,7 @@ import {Timer,Variable,PencilRuler,- File, TerminalSquare, RefreshCw,+ File, TerminalSquare, RefreshCw, PlaySquare,} from 'lucide-react'import logoOpenAI from '@/images/logos/openai.svg'@@ -169,6 +169,16 @@ export const routes = [title: 'Guide: Creating Custom Sandbox',href: '/guide/custom-sandbox',},+ {+ icon: (+ <PlaySquare+ strokeWidth={1}+ size={20}+ />+ ),+ title: 'Start Command',+ href: '/sandbox/templates/start-cmd',+ },{icon: (<Boxes