You can execute commands in a running sandbox.Documentation Index
Fetch the complete documentation index at: https://e2b.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Pipe command from stdin
You can pipe directly into the sandbox as well:Run in background
Use the--background flag to run a command in the background and return immediately. The command will print the process ID (PID) to stderr:
Set working directory
Use the--cwd flag to specify the working directory for the command:
Run as specific user
Use the--user flag to run the command as a specific user:
Set environment variables
Use the--env flag to set environment variables. This flag can be repeated for multiple variables: