From 6c12667557fd677b1902dd7b622cb704849e8442 Mon Sep 17 00:00:00 2001 From: Mish Ushakov <10400064+mishushakov@users.noreply.github.com> Date: Tue, 30 Jun 2026 13:19:56 +0200 Subject: [PATCH] fix(cli): correct memory-mb help default and use non-deprecated pause Fix `template create --memory-mb` help text to state the real default of 1024 MB (was 512), and switch `sandbox pause` to call the non-deprecated `Sandbox.pause()` instead of the deprecated `Sandbox.betaPause()` alias. Co-Authored-By: Claude Opus 4.8 (1M context) --- .changeset/cli-pause-and-memory-help.md | 5 +++++ packages/cli/src/commands/sandbox/pause.ts | 2 +- packages/cli/src/commands/template/create.ts | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/cli-pause-and-memory-help.md diff --git a/.changeset/cli-pause-and-memory-help.md b/.changeset/cli-pause-and-memory-help.md new file mode 100644 index 0000000000..85887348dd --- /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.ts index 0c187214a6..e11a11a5c7 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.ts index a512f858e4..ab8b351212 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 ', - '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.')