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.')