Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/cli-pause-and-memory-help.md
Original file line number Diff line number Diff line change
@@ -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.
2 changes: 1 addition & 1 deletion packages/cli/src/commands/sandbox/pause.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/commands/template/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.')
Expand Down
Loading