run-script
cmr/device/run-script
Package: cmr
Type: Command
Runs a script on the selected devices.
| Argument | Type | Description |
|---|---|---|
| script | alt { script: string } | The script to run on the selected devices. |
| labels ( unset ) | object | Select the devices to run the script on using labels. Supports + and - signs as AND and AND NOT operators, respectively; if no sign is provided, the OR operator is used. |
| order | object | Execution order (by labels). |
| strategy ( unset ) | enum () | How devices are processed: parallel or sequential. |
| fail-policy ( unset ) | enum () | Behaviour if a device fails: continue, stop, or continue-order. |
| timeout ( unset ) | time | Script execution timeout. |
| Read-only Argument | Type | Description |
|---|---|---|
| device | enum | Device the script is running on. |
| status | string | Execution status. |
| output | string | Script output. |