Skip to main content

Command execution

Run terminal commands as an action input — CLI tools, scripts, curl, df, ps, package managers, and so on. Parse the output into structured data with parse.

actions:
- name: DiskFree
command:
run: df -h
parse:
data_type: text
split_whitespace: true

Use parse / parse_stderr to turn stdout/stderr into JSON, CSV, or XML — by delimiter, whitespace, line range, keys, or regex matches.

CommandRun

FieldTypeDescription
timeoutstring (nullable)
namestring (nullable)
shellstring (nullable)
runstringRequired.
parseCommandParse (nullable)
parse_stderrCommandParse (nullable)

CommandParse

FieldTypeDescription
data_typeDataType (nullable)
disable_auto_extractboolean (nullable)
delimiterstring (nullable)
split_startstring (nullable)
split_endstring (nullable)
line_startnumber (nullable)
line_endnumber (nullable)
keysArray<string> (nullable)
split_bystring (nullable)
split_whitespaceboolean (nullable)
matchesArray<CommandRegex> (nullable)
ignore_outputboolean (nullable)

CommandRegex

FieldTypeDescription
keysArray<string>Required.
regexstring (nullable)
split_bystring (nullable)
split_whitespaceboolean (nullable)