{
  "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,
    "secret_paths": [
      {
        "file": "~/.st2/config",
        "match": {
          "prefix": [
            "password",
            "api_key",
            "basic_auth"
          ]
        }
      }
    ],
    "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
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/st2.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "run"
        ],
        "label": "Run an action",
        "description": "Invoke an action manually with key=value parameters.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/st2.ts",
            "license": "MIT"
          }
        ],
        "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"
            ]
          },
          {
            "id": "parameters",
            "label": "Parameters",
            "type": "string",
            "position": 1,
            "description": "Keyword arguments such as cmd=\"uname -a\".",
            "multiple": true,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "async",
            "label": "Do not wait",
            "type": "boolean",
            "option": [
              "--async",
              "-a"
            ],
            "description": "Do not wait for the action to finish.",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "tail",
            "label": "Tail execution",
            "type": "boolean",
            "option": [
              "--tail"
            ],
            "description": "Automatically start tailing the new execution.",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "json",
            "label": "JSON output",
            "type": "boolean",
            "option": [
              "--json",
              "-j"
            ],
            "description": "Print output in JSON format.",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "yaml",
            "label": "YAML output",
            "type": "boolean",
            "option": [
              "--yaml",
              "-y"
            ],
            "description": "Print output in YAML format.",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "detail",
            "label": "Full detail",
            "type": "boolean",
            "option": [
              "--detail",
              "-d"
            ],
            "description": "Display full detail of the execution in table format.",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "key",
            "label": "Result key",
            "type": "string",
            "option": [
              "--key",
              "-k"
            ],
            "description": "Print a specific key of a JSON result.",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "delay",
            "label": "Delay (ms)",
            "type": "integer",
            "option": [
              "--delay"
            ],
            "description": "Delay the execution before scheduling.",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "user",
            "label": "Run as user",
            "type": "string",
            "option": [
              "--user",
              "-u"
            ],
            "description": "User under which to run the action (admins only).",
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "run",
            "label": "Run and wait",
            "fields": [
              "action",
              "parameters",
              "detail"
            ],
            "required": [
              "action"
            ]
          },
          {
            "id": "async",
            "label": "Run in background",
            "set": {
              "async": [
                true
              ]
            },
            "fields": [
              "action",
              "parameters"
            ],
            "required": [
              "action"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "action",
              "parameters",
              "async",
              "tail",
              "json",
              "detail"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "yaml",
              "key",
              "delay",
              "user"
            ]
          }
        ]
      }
    ]
  }
}
