Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
fix(cli): correct memory-mb help default and use non-deprecated pause (#1510)
Mish Ushakov347ebe8ad839
diff --git a/.changeset/cli-pause-and-memory-help.md b/.changeset/cli-pause-and-memory-help.mdnew file mode 100644index 000000000..85887348d--- /dev/null+++ b/.changeset/cli-pause-and-memory-help.md@@ -0,0 +1,5 @@+---+"@e2b/cli": patch+---++Fix `e2b template create --memory-mb` help text to reflect the real default of 1024 MB (was incorrectly stated as 512), and switch `e2b sandbox pause` to call the non-deprecated `Sandbox.pause()` instead of the deprecated `Sandbox.betaPause()` alias.diff --git a/packages/cli/src/commands/sandbox/pause.ts b/packages/cli/src/commands/sandbox/pause.tsindex 0c187214a..e11a11a5c 100644--- a/packages/cli/src/commands/sandbox/pause.ts+++ b/packages/cli/src/commands/sandbox/pause.ts@@ -7,7 +7,7 @@ import { NotFoundError } from 'e2b'async function pauseSandbox(sandboxID: string, apiKey: string) {try {- const paused = await e2b.Sandbox.betaPause(sandboxID, { apiKey })+ const paused = await e2b.Sandbox.pause(sandboxID, { apiKey })if (paused) {console.log(`Sandbox ${asBold(sandboxID)} has been paused`)} else {diff --git a/packages/cli/src/commands/template/create.ts b/packages/cli/src/commands/template/create.tsindex a512f858e..ab8b35121 100644--- a/packages/cli/src/commands/template/create.ts+++ b/packages/cli/src/commands/template/create.ts@@ -50,7 +50,7 @@ export const createCommand = new commander.Command('create')).option('--memory-mb <memory-mb>',- 'specify the amount of memory in megabytes that will be used to run the sandbox. Must be an even number. The default value is 512.',+ 'specify the amount of memory in megabytes that will be used to run the sandbox. Must be an even number. The default value is 1024.',parsePositiveInt('Memory in megabytes')).option('--no-cache', 'skip cache when building the template.')