cli-exec
Execute multiple CLI commands in a specified working directory with optional timeouts. Detailed results include stdout, stderr, exit code, and execution duration for each command.
Instructions
Execute one or more CLI commands in a specific working directory
Input Schema
Name | Required | Description | Default |
---|---|---|---|
commands | Yes | Commands to execute | |
timeout | No | Optional timeout in milliseconds per command (default: 5 minutes) | |
workingDirectory | Yes | Working directory to execute commands in |
Input Schema (JSON Schema)
{
"properties": {
"commands": {
"description": "Commands to execute",
"oneOf": [
{
"description": "Single command or && separated commands",
"type": "string"
},
{
"description": "Array of commands to execute sequentially",
"items": {
"type": "string"
},
"type": "array"
}
]
},
"timeout": {
"description": "Optional timeout in milliseconds per command (default: 5 minutes)",
"minimum": 0,
"type": "number"
},
"workingDirectory": {
"description": "Working directory to execute commands in",
"type": "string"
}
},
"required": [
"workingDirectory",
"commands"
],
"type": "object"
}