Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Improve start command docs
Tomas Valenta059de46f9ffb
diff --git a/apps/docs/src/app/cli/commands/page.mdx b/apps/docs/src/app/cli/commands/page.mdxindex 8a778f956..9af825162 100644--- a/apps/docs/src/app/cli/commands/page.mdx+++ b/apps/docs/src/app/cli/commands/page.mdx@@ -35,7 +35,7 @@ If there is no `e2b.toml` config a new template will be created.<Options><Option type="-c, --cmd" name="start-command">- Specify the command that should be running when the sandbox starts.+ Specify the command that should be running when a sandbox starts.</Option><Option type="-n, --name" name="template-name">Specify the name of the sandbox template. You can use the template name to start the sandbox in the SDK. The name must be lowercase and contain only letters, numbers, dashes, and underscores.diff --git a/apps/docs/src/app/sandbox/templates/start-cmd/page.mdx b/apps/docs/src/app/sandbox/templates/start-cmd/page.mdxindex af7a1dfca..0e125fb2f 100644--- a/apps/docs/src/app/sandbox/templates/start-cmd/page.mdx+++ b/apps/docs/src/app/sandbox/templates/start-cmd/page.mdx@@ -1,19 +1,20 @@# Start Command-Custom sandboxes allow you to specify a command that will be running when the sandbox is spawned.+Custom sandboxes allow you to specify a command that will be running when a sandbox is spawned.This way you can run a command that will start your app, or run a command that will start a specific process.## How to add a start command-When you are building a sandbox template you can specify the start command by using the `-c` flag:+When you are building a sandbox template you can specify the start command by using the [`-c`](/cli/commands#build) option:```bashe2b build -c "npm start"```After the sandbox template is built, when you spawn a sandbox the start command will be running if there was no error when it tried to start.+You can check the logs from the start command by using the SDKs:@@ -54,7 +55,8 @@ sandbox.close()### Sandbox template config-You can find the current start command in the `e2b.toml`:++You can find the start command for the sandbox template in the `e2b.toml`:<CodeGroup isFileName title="e2b.toml" isRunnable={false}>```toml@@ -62,6 +64,6 @@ You can find the current start command in the `e2b.toml`:id = "1wdqsf9le9gk21ztb4mo"dockerfile = "e2b.Dockerfile"name = "my-agent-sandbox"-start_cmd = "npm start"+start_cmd = "npm start" # $HighlightLine```</CodeGroup>