You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Document per-command env and cwd options for exec methods
Add documentation for new per-command environment variables and working
directory options in exec() and execStream() methods. These options
allow temporary configuration that does not persist in session state.
Includes examples showing:
- Setting per-command environment variables
- Specifying working directory per command
- Demonstrating that values do not persist across commands
Synced from cloudflare/sandbox-sdk PR #204
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
Execute commands and manage background processes in the sandbox's isolated container environment.
11
11
12
+
:::note[Per-command vs Session-level options]
13
+
Commands support per-command `env` and `cwd` options that apply only to that specific command execution. These do not persist in the session state. For persistent environment variables and working directories, use [session-level configuration](/sandbox/api/sessions/) with `createSession()`.
0 commit comments