{
  "description": "Sync, diff and dump Kong Gateway configuration. Konnect, TLS, auth and tag-filter options are left out.",
  "name": "deck",
  "subcommands": [
    {
      "name": "gateway",
      "subcommands": [
        {
          "name": "sync",
          "description": "Sync state to Kong",
          "options": [
            {
              "names": [
                "--kong-addr"
              ],
              "description": "Defaults to http://localhost:8001.",
              "args": {
                "name": "kong_addr",
                "description": "Defaults to http://localhost:8001.",
                "isOptional": false
              }
            },
            {
              "names": [
                "--workspace",
                "-w"
              ],
              "description": "Kong Enterprise only.",
              "args": {
                "name": "workspace",
                "description": "Kong Enterprise only.",
                "isOptional": false
              }
            },
            {
              "names": [
                "--skip-consumers"
              ],
              "description": "Skip consumers"
            },
            {
              "names": [
                "--yes"
              ],
              "description": "Run non-interactively.",
              "isDangerous": true
            }
          ],
          "args": [
            {
              "name": "files",
              "description": "Use - for stdin.",
              "isOptional": true,
              "isVariadic": true,
              "template": "filepaths"
            }
          ]
        },
        {
          "name": "diff",
          "description": "Diff state against Kong",
          "options": [
            {
              "names": [
                "--kong-addr"
              ],
              "description": "Defaults to http://localhost:8001.",
              "args": {
                "name": "kong_addr",
                "description": "Defaults to http://localhost:8001.",
                "isOptional": false
              }
            },
            {
              "names": [
                "--workspace",
                "-w"
              ],
              "description": "Kong Enterprise only.",
              "args": {
                "name": "workspace",
                "description": "Kong Enterprise only.",
                "isOptional": false
              }
            },
            {
              "names": [
                "--non-zero-exit-code"
              ],
              "description": "Exit code 2 on diff"
            }
          ],
          "args": [
            {
              "name": "files",
              "description": "Use - for stdin.",
              "isOptional": true,
              "isVariadic": true,
              "template": "filepaths"
            }
          ]
        },
        {
          "name": "dump",
          "description": "Dump Kong state",
          "options": [
            {
              "names": [
                "--output-file",
                "-o"
              ],
              "description": "Use - for stdout.",
              "args": {
                "name": "output_file",
                "description": "Use - for stdout.",
                "isOptional": false,
                "template": "filepaths"
              },
              "isDangerous": true
            },
            {
              "names": [
                "--format"
              ],
              "description": "Format",
              "args": {
                "name": "format",
                "isOptional": false,
                "suggestions": [
                  {
                    "name": "yaml",
                    "description": "YAML"
                  },
                  {
                    "name": "json",
                    "description": "JSON"
                  }
                ]
              }
            },
            {
              "names": [
                "--kong-addr"
              ],
              "description": "Defaults to http://localhost:8001.",
              "args": {
                "name": "kong_addr",
                "description": "Defaults to http://localhost:8001.",
                "isOptional": false
              }
            },
            {
              "names": [
                "--workspace",
                "-w"
              ],
              "description": "Kong Enterprise only.",
              "args": {
                "name": "workspace",
                "description": "Kong Enterprise only.",
                "isOptional": false
              }
            },
            {
              "names": [
                "--with-id"
              ],
              "description": "Include entity IDs"
            },
            {
              "names": [
                "--all-workspaces"
              ],
              "description": "All workspaces"
            }
          ]
        }
      ]
    }
  ]
}
