commandLine.executeCommand
Command Line
Runs a shell command on the Nodlyn host and captures stdout, stderr, and exit code. Supports PowerShell on Windows and bash/sh on Linux.
When to use
- Invoke existing CLI tools (git, ffmpeg, python scripts).
- Run maintenance scripts on the host.
- Bridge to legacy batch jobs not yet modeled as nodes.
Properties
| Property | Type | Description |
| Command | text | Executable name, e.g. ping, dotnet, python. Required. |
| Arguments | text | Command-line args. Supports {{field}} and {{$var.key}} placeholders. |
| Working Directory | text | Process start directory, e.g. C:/projects/myapp. |
| Timeout (seconds) | number | Kill the process after this limit. Default: 60. |
| Run via Shell | toggle | Execute through the system shell (required for pipes and redirects). Default: on. |
Outputs
| Field | Description |
exitCode | Process exit code (0 = success). |
stdout | Standard output text. |
stderr | Standard error text. |
timedOut | true if killed due to timeout. |
durationMs | Execution time in milliseconds. |
Notes
- Marked Dangerous — validate inputs and use Approval Gates for production writes.
- On-prem / runtime agent only when the command needs local OS access.
- Parse
stdout with Transform or Condition on exitCode.
See also