{
  "description": "Run a command in Terramate stacks, or list stacks. Terramate Cloud sync options, dependency selection and target options are not covered.",
  "name": "terramate",
  "subcommands": [
    {
      "name": "run",
      "description": "Execute a command in each selected stack. The command goes after --; use Dry run to only plan the execution.",
      "options": [
        {
          "names": [
            "--changed",
            "-c"
          ],
          "description": "Only changed stacks"
        },
        {
          "names": [
            "--parallel",
            "-j"
          ],
          "description": "Parallel stacks",
          "args": {
            "name": "parallel",
            "isOptional": false
          }
        },
        {
          "names": [
            "--dry-run"
          ],
          "description": "Plan the execution but do not execute it."
        },
        {
          "names": [
            "--continue-on-error"
          ],
          "description": "Continue on error"
        },
        {
          "names": [
            "--reverse"
          ],
          "description": "Reverse order"
        },
        {
          "names": [
            "--tags"
          ],
          "description": "Tags filter",
          "args": {
            "name": "tags",
            "isOptional": false
          }
        },
        {
          "names": [
            "--no-tags"
          ],
          "description": "Exclude tags",
          "args": {
            "name": "no_tags",
            "isOptional": false
          }
        }
      ],
      "args": [
        {
          "name": "command",
          "description": "The command to run in each stack, for example terraform plan.",
          "isOptional": true,
          "isVariadic": true
        }
      ]
    }
  ]
}
