Skip to content

armgit / E2B

Public Imported from GitHub
0

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

Tweak flag

Tomas Valentad24e37b0df1d
diff --git a/packages/cli/src/commands/build.ts b/packages/cli/src/commands/build.ts
index 1e1a6dd11..f149e07fd 100644
--- a/packages/cli/src/commands/build.ts
+++ b/packages/cli/src/commands/build.ts
@@ -61,7 +61,7 @@ export const buildCommand = new commander.Command('build')
'Specify sandbox template name. You can use the template name to start the sandbox with SDK. The template name must be lowercase and contain only letters, numbers, dashes and underscores',
)
.option(
- '-c, --start-cmd <cmd>',
+ '-c, --cmd <start-command>',
'Specify command that will be executed when the sandbox is started',
)
.alias('bd')
@@ -72,7 +72,7 @@ export const buildCommand = new commander.Command('build')
path?: string;
dockerfile?: string;
name?: string;
- startCmd?: string;
+ cmd?: string;
},
) => {
try {
@@ -89,7 +89,7 @@ export const buildCommand = new commander.Command('build')
let envID = id
let dockerfile = opts.dockerfile
- let startCmd = opts.startCmd
+ let startCmd = opts.cmd
const root = getRoot(opts.path)
const configPath = getConfigPath(root)
@@ -112,7 +112,7 @@ export const buildCommand = new commander.Command('build')
)
envID = config.id
dockerfile = opts.dockerfile || config.dockerfile
- startCmd = opts.startCmd || config.start_cmd
+ startCmd = opts.cmd || config.start_cmd
}
if (config && id && config.id !== id) {