-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Sync docs: add environment variables and working directory support to command exec #26653
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: production
Are you sure you want to change the base?
Conversation
|
This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:
|
13ae41f to
084eb8a
Compare
|
Updated documentation to reflect the new per-command ChangesCommands API (
|
|
✅ Documentation sync complete! Files Updated1.
|
|
Added comprehensive documentation for all |
Document new per-command environment variable and working directory options added to exec(), execStream(), and startProcess() methods. Changes: - Add env and cwd parameters to exec() and execStream() API docs - Add practical examples showing per-command env variable scoping - Add working directory override examples - Update environment variables configuration guide - Clarify that per-command options do not persist in session Related PR: cloudflare/sandbox-sdk#204 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
4d2e471 to
1f61420
Compare
Summary
Documents new
envandcwdparameters added to command execution methods in the Cloudflare Sandbox SDK.Changes
API Documentation (
sandbox/api/commands.mdx)envandcwdparameters toexec()method documentationenvandcwdparameters toexecStream()method documentationExecute Commands Guide (
sandbox/guides/execute-commands.mdx)cwdoption as best practiceContext
These parameters allow customizing command execution on a per-command basis:
env: Environment variables merged with session environment (per-command only)cwd: Working directory that overrides session working directory (per-command only)This provides flexibility for different command contexts without affecting the broader session state.
Source
🤖 Synced from cloudflare/sandbox-sdk PR #204
Original PR Title: add environment variables and working directory support to command exec