Skip to content

armgit / E2B

Public Imported from GitHub
0

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

Set default template to "base" on spawn command (#938)

Mish Ushakov8f53fdc74619
diff --git a/.changeset/poor-walls-punch.md b/.changeset/poor-walls-punch.md
new file mode 100644
index 000000000..042aa2703
--- /dev/null
+++ b/.changeset/poor-walls-punch.md
@@ -0,0 +1,5 @@
+---
+'@e2b/cli': patch
+---
+
+set default template to spawn command
diff --git a/packages/cli/src/commands/sandbox/create.ts b/packages/cli/src/commands/sandbox/create.ts
index 3bde93783..16e159d35 100644
--- a/packages/cli/src/commands/sandbox/create.ts
+++ b/packages/cli/src/commands/sandbox/create.ts
@@ -66,10 +66,7 @@ export function createCommand(
}
if (!templateID) {
- console.error(
- 'You need to specify sandbox template ID or path to sandbox template config'
- )
- process.exit(1)
+ templateID = 'base'
}
await connectSandbox({ apiKey, template: { templateID } })