Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Update id

Tomas Valentadcf8e77d88cc
diff --git a/apps/docs/src/app/sandbox/templates/start-cmd/page.mdx b/apps/docs/src/app/sandbox/templates/start-cmd/page.mdx
index d29611376..42e33fd22 100644
--- a/apps/docs/src/app/sandbox/templates/start-cmd/page.mdx
+++ b/apps/docs/src/app/sandbox/templates/start-cmd/page.mdx
@@ -23,7 +23,7 @@ import { Sandbox } from '@e2b/sdk'
// Spawn your custom sandbox
const sandbox = await Sandbox.create({
- id: 'my-agent-sandbox',
+ template: 'my-agent-sandbox',
})
// Get the stdout and stderr from the start command
@@ -37,7 +37,7 @@ await sandbox.close()
from e2b import Sandbox
# Spawn your custom sandbox
-sandbox = Sandbox(id="my-agent-sandbox")
+sandbox = Sandbox(template="my-agent-sandbox")
# Get the stdout and stderr from the start command
stdout = sandbox.start_cmd.stdout # $HighlightLine