Skip to main content
The runStreamingCommand() method is designed for executing long-running or interactive commands inside a sandbox while receiving real-time output streams.

runStreamingCommand(options)

Description: Executes a long-running command with real-time output streaming. Callbacks are invoked as data arrives. Parameters: Returns:
Example:
Path Handling: When passing file paths or directory paths as command arguments, you can use the ~/ shorthand notation, which the shell automatically expands to the user’s home directory (/home/damner). Examples:
  • ~/file.js expands to /home/damner/file.js
  • ~/project/script.sh expands to /home/damner/project/script.sh
  • ~/code/app.py expands to /home/damner/code/app.py