id = "st2"
name = "StackStorm"
homepage = "https://docs.stackstorm.com/reference/cli.html"
description = "StackStorm is a platform for integration and automation across services and tools, taking actions in response to events."
icon = "https://stackstorm.com/wp/wp-content/uploads/2015/09/st2.png"
executables = ["st2"]
[dotfiles]
paths = ["~/.st2/config"]
exclude = []
secret = ["~/.st2/token-*"]
side_effect = false
[[dotfiles.secret_paths]]
file = "~/.st2/config"
match = { prefix = ["password", "api_key", "basic_auth"] }
[[dotfiles.machine_lines]]
file = "~/.st2/config"
match = { prefix = ["cacert"] }
scope = "backup"
[commands]
format = 1
label = "StackStorm CLI"
description = "Run a StackStorm action. Authentication, packs, rules and execution management are left out."
quality = "ai-draft"
base = "fig:st2"
parser = { end_of_options = "--", interleave = "permute", long_equals = true, short_attached = true, short_bundles = false }
[[commands.source]]
id = "fig"
kind = "completion"
url = "https://github.com/withfig/autocomplete/blob/master/src/st2.ts"
license = "MIT"
[[commands.subcommand]]
path = ["run"]
label = "Run an action"
description = "Invoke an action manually with key=value parameters."
[[commands.subcommand.source]]
id = "fig"
kind = "completion"
url = "https://github.com/withfig/autocomplete/blob/master/src/st2.ts"
license = "MIT"
[[commands.subcommand.field]]
id = "action"
label = "Action ref or ID"
type = "string"
position = 0
description = "Reference or ID of the action, e.g. core.local."
sources = ["fig"]
[[commands.subcommand.field]]
id = "parameters"
label = "Parameters"
type = "string"
position = 1
description = "Keyword arguments such as cmd=\"uname -a\"."
multiple = true
sources = ["fig"]
[[commands.subcommand.field]]
id = "async"
label = "Do not wait"
type = "boolean"
option = ["--async", "-a"]
description = "Do not wait for the action to finish."
sources = ["fig"]
[[commands.subcommand.field]]
id = "tail"
label = "Tail execution"
type = "boolean"
option = ["--tail"]
description = "Automatically start tailing the new execution."
sources = ["fig"]
[[commands.subcommand.field]]
id = "json"
label = "JSON output"
type = "boolean"
option = ["--json", "-j"]
description = "Print output in JSON format."
sources = ["fig"]
[[commands.subcommand.field]]
id = "yaml"
label = "YAML output"
type = "boolean"
option = ["--yaml", "-y"]
description = "Print output in YAML format."
sources = ["fig"]
[[commands.subcommand.field]]
id = "detail"
label = "Full detail"
type = "boolean"
option = ["--detail", "-d"]
description = "Display full detail of the execution in table format."
sources = ["fig"]
[[commands.subcommand.field]]
id = "key"
label = "Result key"
type = "string"
option = ["--key", "-k"]
description = "Print a specific key of a JSON result."
sources = ["fig"]
[[commands.subcommand.field]]
id = "delay"
label = "Delay (ms)"
type = "integer"
option = ["--delay"]
description = "Delay the execution before scheduling."
sources = ["fig"]
[[commands.subcommand.field]]
id = "user"
label = "Run as user"
type = "string"
option = ["--user", "-u"]
description = "User under which to run the action (admins only)."
sources = ["fig"]
[[commands.subcommand.task]]
id = "run"
label = "Run and wait"
fields = ["action", "parameters", "detail"]
required = ["action"]
[[commands.subcommand.task]]
id = "async"
label = "Run in background"
set = { async = [true] }
fields = ["action", "parameters"]
required = ["action"]
[[commands.subcommand.group]]
id = "basic"
label = "Basic"
fields = ["action", "parameters", "async", "tail", "json", "detail"]
[[commands.subcommand.group]]
id = "advanced"
label = "Advanced"
fields = ["yaml", "key", "delay", "user"]