{
  "description": "Grafana CLI. Only 'resources pull' is offered here; other sub-commands are left out. The project is being deprecated in favour of gcx.",
  "name": "grafanactl",
  "subcommands": [
    {
      "name": "resources",
      "subcommands": [
        {
          "name": "pull",
          "description": "Download dashboards, folders and other resources from the selected Grafana context to files on disk.",
          "options": [
            {
              "names": [
                "--context"
              ],
              "description": "Name of the configured Grafana context to use.",
              "args": {
                "name": "context",
                "description": "Name of the configured Grafana context to use.",
                "isOptional": false
              }
            },
            {
              "names": [
                "--path",
                "-p"
              ],
              "description": "Output directory",
              "args": {
                "name": "path",
                "isOptional": false,
                "template": "folders"
              },
              "isDangerous": true
            },
            {
              "names": [
                "--output",
                "-o"
              ],
              "description": "File format",
              "args": {
                "name": "output",
                "isOptional": false,
                "suggestions": [
                  {
                    "name": "json",
                    "description": "JSON"
                  },
                  {
                    "name": "yaml",
                    "description": "YAML"
                  }
                ]
              }
            },
            {
              "names": [
                "--on-error"
              ],
              "description": "On error",
              "args": {
                "name": "on_error",
                "isOptional": false,
                "suggestions": [
                  {
                    "name": "ignore",
                    "description": "Ignore and exit 0"
                  },
                  {
                    "name": "fail",
                    "description": "Continue, exit 1 if any failed"
                  },
                  {
                    "name": "abort",
                    "description": "Stop at first error"
                  }
                ]
              }
            },
            {
              "names": [
                "--include-managed"
              ],
              "description": "Include resources managed by other tools"
            },
            {
              "names": [
                "--config"
              ],
              "description": "Config file",
              "args": {
                "name": "config",
                "isOptional": false,
                "template": "filepaths"
              }
            },
            {
              "names": [
                "--no-color"
              ],
              "description": "Disable colour"
            }
          ],
          "args": [
            {
              "name": "selectors",
              "description": "For example dashboards, dashboards/foo,bar or folders. Leave empty to pull everything.",
              "isOptional": true,
              "isVariadic": true
            }
          ]
        }
      ]
    }
  ]
}
