Skip to content

Commit 13ae41f

Browse files
Add env and cwd parameters to exec() and execStream()
Documents the new environment variables and working directory parameters added to command execution methods in PR 204. These parameters allow per-command customization of execution context. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent c9fe781 commit 13ae41f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/docs/sandbox/api/commands.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ for await (const event of parseSSEStream<ExecEvent>(stream)) {
8888
}
8989
}
9090
91-
// With custom environment
91+
// With custom environment and working directory
9292
const testStream = await sandbox.execStream('npm run test', {
9393
env: { NODE_ENV: 'test' },
9494
cwd: '/workspace/tests'

0 commit comments

Comments
 (0)