Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

refactor(cli): remove ensureAccessToken from template create (#1400)

Mish Ushakovf1516d5c6ee7
diff --git a/.changeset/remove-ensureaccesstoken-template-create.md b/.changeset/remove-ensureaccesstoken-template-create.md
new file mode 100644
index 000000000..861e11360
--- /dev/null
+++ b/.changeset/remove-ensureaccesstoken-template-create.md
@@ -0,0 +1,5 @@
+---
+"@e2b/cli": patch
+---
+
+Remove `ensureAccessToken` call from `e2b template create`: the command now relies solely on the API key for authentication.
diff --git a/packages/cli/src/commands/template/create.ts b/packages/cli/src/commands/template/create.ts
index 4645df5a6..e848c89f1 100644
--- a/packages/cli/src/commands/template/create.ts
+++ b/packages/cli/src/commands/template/create.ts
@@ -1,7 +1,7 @@
import * as boxen from 'boxen'
import * as commander from 'commander'
import { defaultBuildLogger, Template, TemplateClass } from 'e2b'
-import { connectionConfig, ensureAccessToken, ensureAPIKey } from 'src/api'
+import { connectionConfig, ensureAPIKey } from 'src/api'
import {
defaultDockerfileName,
fallbackDockerfileName,
@@ -68,8 +68,6 @@ export const createCommand = new commander.Command('create')
}
) => {
try {
- // Ensure we have access token
- ensureAccessToken()
process.stdout.write('\n')
// Validate template name