@e2b/cli 2.8.1 → 2.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# {{
|
|
1
|
+
# {{name}} - E2B Sandbox Template
|
|
2
2
|
|
|
3
3
|
This is an E2B sandbox template that allows you to run code in a controlled environment.
|
|
4
4
|
|
|
@@ -53,7 +53,7 @@ Once your template is built, you can use it in your E2B sandbox:
|
|
|
53
53
|
import { Sandbox } from 'e2b'
|
|
54
54
|
|
|
55
55
|
// Create a new sandbox instance
|
|
56
|
-
const sandbox = await Sandbox.create('{{
|
|
56
|
+
const sandbox = await Sandbox.create('{{name}}')
|
|
57
57
|
|
|
58
58
|
// Your sandbox is ready to use!
|
|
59
59
|
console.log('Sandbox created successfully')
|
|
@@ -63,7 +63,7 @@ console.log('Sandbox created successfully')
|
|
|
63
63
|
from e2b import Sandbox
|
|
64
64
|
|
|
65
65
|
# Create a new sandbox instance
|
|
66
|
-
sandbox = Sandbox.create('{{
|
|
66
|
+
sandbox = Sandbox.create('{{name}}')
|
|
67
67
|
|
|
68
68
|
# Your sandbox is ready to use!
|
|
69
69
|
print('Sandbox created successfully')
|
|
@@ -75,7 +75,7 @@ import asyncio
|
|
|
75
75
|
|
|
76
76
|
async def main():
|
|
77
77
|
# Create a new sandbox instance
|
|
78
|
-
sandbox = await AsyncSandbox.create('{{
|
|
78
|
+
sandbox = await AsyncSandbox.create('{{name}}')
|
|
79
79
|
|
|
80
80
|
# Your sandbox is ready to use!
|
|
81
81
|
print('Sandbox created successfully')
|
|
@@ -2,7 +2,7 @@ import { Template, defaultBuildLogger } from 'e2b'
|
|
|
2
2
|
import { template } from './template'
|
|
3
3
|
|
|
4
4
|
async function main() {
|
|
5
|
-
await Template.build(template, '{{
|
|
5
|
+
await Template.build(template, '{{name}}', {
|
|
6
6
|
{{#if cpuCount}}
|
|
7
7
|
cpuCount: {{cpuCount}},
|
|
8
8
|
{{/if}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@e2b/cli",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.2",
|
|
4
4
|
"description": "CLI for managing e2b sandbox templates",
|
|
5
5
|
"homepage": "https://e2b.dev",
|
|
6
6
|
"license": "MIT",
|
|
@@ -42,7 +42,6 @@
|
|
|
42
42
|
"@types/node": "^20.19.19",
|
|
43
43
|
"@types/npmcli__package-json": "^4.0.4",
|
|
44
44
|
"@types/statuses": "^2.0.5",
|
|
45
|
-
"@types/update-notifier": "6.0.5",
|
|
46
45
|
"@vitest/coverage-v8": "^3.2.4",
|
|
47
46
|
"json2md": "^2.0.1",
|
|
48
47
|
"knip": "^5.43.6",
|
|
@@ -71,13 +70,13 @@
|
|
|
71
70
|
"commander": "^11.1.0",
|
|
72
71
|
"console-table-printer": "^2.11.2",
|
|
73
72
|
"dockerfile-ast": "^0.6.1",
|
|
74
|
-
"e2b": "^2.
|
|
73
|
+
"e2b": "^2.15.0",
|
|
75
74
|
"handlebars": "^4.7.8",
|
|
76
75
|
"inquirer": "^12.10.0",
|
|
77
76
|
"open": "^9.1.0",
|
|
77
|
+
"simple-update-notifier": "^2.0.0",
|
|
78
78
|
"statuses": "^2.0.1",
|
|
79
79
|
"strip-ansi": "^7.1.0",
|
|
80
|
-
"update-notifier": "^6.0.2",
|
|
81
80
|
"yup": "^1.3.2"
|
|
82
81
|
},
|
|
83
82
|
"engines": {
|
|
@@ -93,7 +92,6 @@
|
|
|
93
92
|
"test": "vitest run",
|
|
94
93
|
"test:watch": "vitest watch",
|
|
95
94
|
"test:coverage": "vitest run --coverage",
|
|
96
|
-
"check-deps": "knip"
|
|
97
|
-
"generate-ref": "./scripts/generate_sdk_ref.sh"
|
|
95
|
+
"check-deps": "knip"
|
|
98
96
|
}
|
|
99
97
|
}
|