{
  "id": "circleci",
  "name": "CircleCI CLI",
  "homepage": "https://cli.circleci.com/reference/",
  "description": "CircleCI's official command line tool, bringing CI runs, jobs, configuration and other CircleCI features to the terminal.",
  "icon": "theSVG:circleci",
  "executables": [
    "circleci"
  ],
  "dotfiles": {
    "paths": [
      "[configHome]/circleci/config.yml"
    ],
    "exclude": [
      "[xdgData]/circleci/extensions/"
    ],
    "secret": [],
    "side_effect": false,
    "secret_paths": [
      {
        "file": "[configHome]/circleci/config.yml",
        "match": {
          "key_path": [
            "token"
          ]
        }
      }
    ],
    "machine_lines": [
      {
        "file": "[configHome]/circleci/config.yml",
        "match": {
          "key_path": [
            "device_id"
          ]
        }
      }
    ]
  },
  "commands": {
    "format": 1,
    "label": "CircleCI CLI",
    "description": "Browse and validate orbs. Config, contexts, policies, runners and local execution are left out.",
    "quality": "ai-draft",
    "base": "fig:circleci",
    "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/circleci.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "orb",
          "list"
        ],
        "label": "List orbs",
        "description": "List orbs in a namespace.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/circleci.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "namespace",
            "label": "Namespace",
            "description": "Namespace of the orbs, e.g. circleci.",
            "type": "string",
            "position": 0,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "sort",
            "label": "Sort by",
            "description": "Specify the sorting.",
            "type": "string",
            "option": [
              "--sort"
            ],
            "suggestions": [
              {
                "value": "builds",
                "label": "builds"
              },
              {
                "value": "projects",
                "label": "projects"
              },
              {
                "value": "orgs",
                "label": "orgs"
              }
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "uncertified",
            "label": "Include uncertified",
            "description": "Include uncertified orbs.",
            "type": "boolean",
            "option": [
              "--uncertified",
              "-u"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "private",
            "label": "Private only",
            "description": "Orbs for private use within your org, unlisted from the public registry.",
            "type": "boolean",
            "option": [
              "--private"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "popular",
            "label": "Most used orbs",
            "set": {
              "sort": [
                "builds"
              ]
            },
            "fields": [
              "namespace",
              "sort"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "namespace",
              "sort",
              "uncertified"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "private"
            ]
          }
        ]
      },
      {
        "path": [
          "orb",
          "info"
        ],
        "label": "Orb info",
        "description": "Show metadata of an orb.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/circleci.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "orb",
            "label": "Orb",
            "description": "namespace/orb, e.g. circleci/node.",
            "type": "string",
            "position": 0,
            "min": 1,
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "info",
            "label": "Show metadata",
            "fields": [
              "orb"
            ],
            "required": [
              "orb"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "orb"
            ]
          }
        ]
      },
      {
        "path": [
          "orb",
          "validate"
        ],
        "label": "Validate an orb",
        "description": "Validate an orb.yml.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/circleci.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "path",
            "label": "Orb file",
            "description": "Path to the orb.yml.",
            "type": "path",
            "position": 0,
            "min": 1,
            "path": {
              "kind": "file",
              "role": "input",
              "must_exist": true
            },
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "validate",
            "label": "Validate",
            "fields": [
              "path"
            ],
            "required": [
              "path"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "path"
            ]
          }
        ]
      }
    ]
  }
}
