Skip to content

armgit / E2B

Public Imported from GitHub
0

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

Fix team ID parameter

Jakub Novak330c60f3db61
diff --git a/packages/cli/src/commands/template/build.ts b/packages/cli/src/commands/template/build.ts
index a20fcb945..f4f66bc3d 100644
--- a/packages/cli/src/commands/template/build.ts
+++ b/packages/cli/src/commands/template/build.ts
@@ -113,7 +113,7 @@ export const buildCommand = new commander.Command('build')
dockerfile?: string
name?: string
cmd?: string
- teamID?: string
+ team?: string
config?: string
cpuCount?: number
memoryMb?: number
@@ -154,7 +154,7 @@ export const buildCommand = new commander.Command('build')
let startCmd = opts.cmd
let cpuCount = opts.cpuCount
let memoryMB = opts.memoryMb
- let teamID = opts.teamID
+ let teamID = opts.team
const root = getRoot(opts.path)
const configPath = getConfigPath(root, opts.config)
@@ -182,7 +182,7 @@ export const buildCommand = new commander.Command('build')
startCmd = opts.cmd || config.start_cmd
cpuCount = opts.cpuCount || config.cpu_count
memoryMB = opts.memoryMb || config.memory_mb
- teamID = opts.teamID || config.team_id
+ teamID = opts.team || config.team_id
}
if (config && templateID && config.template_id !== templateID) {
diff --git a/packages/cli/src/commands/template/delete.ts b/packages/cli/src/commands/template/delete.ts
index 835627c5b..3bd3379be 100644
--- a/packages/cli/src/commands/template/delete.ts
+++ b/packages/cli/src/commands/template/delete.ts
@@ -54,7 +54,7 @@ export const deleteCommand = new commander.Command('delete')
config?: string
yes?: boolean
select?: boolean
- teamID?: string
+ team?: string
},
) => {
try {
@@ -73,7 +73,7 @@ export const deleteCommand = new commander.Command('delete')
} else if (opts.select) {
const allTemplates = await listSandboxTemplates({
accessToken: accessToken,
- teamID: opts.teamID || userConfig.teamId || userConfig.defaultTeamId! // default team ID is here for backwards compatibility
+ teamID: opts.team || userConfig.teamId || userConfig.defaultTeamId! // default team ID is here for backwards compatibility
})
const selectedTemplates = await getPromptTemplates(
allTemplates,
diff --git a/packages/cli/src/commands/template/list.ts b/packages/cli/src/commands/template/list.ts
index 6bfef30a5..e33916624 100644
--- a/packages/cli/src/commands/template/list.ts
+++ b/packages/cli/src/commands/template/list.ts
@@ -17,7 +17,7 @@ export const listCommand = new commander.Command('list')
.addOption(teamOption)
.action(async (
opts: {
- teamID: string
+ team: string
},
) => {
try {
@@ -27,7 +27,7 @@ export const listCommand = new commander.Command('list')
const templates = await listSandboxTemplates({
accessToken: accessToken,
- teamID: opts.teamID || userConfig.teamId || userConfig.defaultTeamId! // default team ID is here for backwards compatibility
+ teamID: opts.team || userConfig.teamId || userConfig.defaultTeamId! // default team ID is here for backwards compatibility
})
for (const template of templates) {