{
  "id": "gdrive",
  "name": "Gdrive",
  "homepage": "https://github.com/glotlabs/gdrive",
  "description": "Google Drive CLI Client",
  "executables": [
    "gdrive"
  ],
  "dotfiles": {
    "paths": [],
    "secret": [
      "[configHome]/gdrive3/"
    ]
  },
  "commands": {
    "format": 1,
    "label": "Google Drive",
    "description": "Show file info or download from Google Drive. Account setup, uploads and exports are left out.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": false,
      "short_bundles": false
    },
    "subcommand": [
      {
        "path": [
          "files",
          "info"
        ],
        "label": "Show file info",
        "source": [
          {
            "id": "usage",
            "kind": "help",
            "url": "https://raw.githubusercontent.com/glotlabs/gdrive/HEAD/docs/basic_usage.md",
            "revision": "2026-10-27",
            "evidence": "gdrive files info <file id>\n"
          }
        ],
        "field": [
          {
            "id": "file_id",
            "label": "File ID",
            "description": "The ID printed by gdrive files list.",
            "type": "string",
            "position": 0,
            "sources": [
              "usage"
            ]
          }
        ],
        "task": [
          {
            "id": "info",
            "label": "Show info",
            "fields": [
              "file_id"
            ],
            "required": [
              "file_id"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "file_id"
            ]
          }
        ]
      },
      {
        "path": [
          "files",
          "download"
        ],
        "label": "Download a file or folder",
        "description": "Binary files only; Google Docs files need the export command.",
        "source": [
          {
            "id": "usage",
            "kind": "help",
            "url": "https://raw.githubusercontent.com/glotlabs/gdrive/HEAD/docs/basic_usage.md",
            "revision": "2026-10-27",
            "evidence": "gdrive files download <file id>\ngdrive files download --recursive <file id (directory)>\n"
          }
        ],
        "field": [
          {
            "id": "recursive",
            "label": "Download a directory",
            "type": "boolean",
            "option": [
              "--recursive"
            ],
            "sources": [
              "usage"
            ]
          },
          {
            "id": "file_id",
            "label": "File ID",
            "type": "string",
            "position": 0,
            "sources": [
              "usage"
            ]
          }
        ],
        "task": [
          {
            "id": "file",
            "label": "Download a file",
            "fields": [
              "file_id"
            ],
            "required": [
              "file_id"
            ]
          },
          {
            "id": "directory",
            "label": "Download a directory",
            "fields": [
              "recursive",
              "file_id"
            ],
            "required": [
              "file_id"
            ],
            "set": {
              "recursive": [
                true
              ]
            }
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "recursive",
              "file_id"
            ]
          }
        ]
      }
    ]
  }
}
