Custom script
Executes system commands or other programs.
Command name
custom-script
Inputs
Name | Type | Optional/Required | Description |
|---|---|---|---|
command-line | string | required | The command line to be executed. |
shell | boolean | optional | Specifies whether the command will be executed through the shell. On POSIX with shell=True, the shell defaults to /bin/sh. Invoking via the shell does allow you to expand environment variables and file globs according to the shell's usual mechanism. On Windows with shell=True, the COMSPEC environment variable specifies the default shell. The only time you need to specify shell=True on Windows is when the command you wish to execute is built into the shell (for example, dir or copy). You do not need shell=True to run a batch file or console-based executable. |
description | string | optional | The command description. |
Outputs
None
Example
{
"schema-version": 1.0,
"content": [
{
"name": "Custom-script command example",
"description": "Test template for the custom-script command",
"enabled": true,
"commands": [
{
"command": "custom-script",
"inputs": [
{
"description": "List detailed information about files and directories in the current directory",
"command-line": "ls -la",
"shell": false
}
]
}
]
}
]
}