working_directory
to prevent unintended system modifications. Dangerous commands are blocked by default.TerminalToolkit
. You can configure its behavior, such as the working directory and environment settings.
shell_exec
function is the primary way to execute commands. Each command is run within a session, identified by a unique id
.
shell_write_to_process
. This is useful for interactive command-line tools.safe_mode
is enabled (default), the toolkit blocks commands that could be harmful to your system.
ask_user_for_help
to request human intervention.