id = "gdrive" name = "Gdrive" homepage = "https://github.com/glotlabs/gdrive" description = "Google Drive CLI Client" executables = ["gdrive"] [dotfiles] # The official Gdrive README says account credentials and tokens are saved # under $HOME/.config/gdrive3/. The whole directory is secret because the # README does not promise stable filenames for those credential artifacts. # https://github.com/glotlabs/gdrive#credentials 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 } [[commands.subcommand]] path = ["files", "info"] label = "Show file info" [[commands.subcommand.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 """ [[commands.subcommand.field]] id = "file_id" label = "File ID" description = "The ID printed by gdrive files list." type = "string" position = 0 sources = ["usage"] [[commands.subcommand.task]] id = "info" label = "Show info" fields = ["file_id"] required = ["file_id"] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["file_id"] [[commands.subcommand]] path = ["files", "download"] label = "Download a file or folder" description = "Binary files only; Google Docs files need the export command." [[commands.subcommand.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 gdrive files download --recursive """ [[commands.subcommand.field]] id = "recursive" label = "Download a directory" type = "boolean" option = ["--recursive"] sources = ["usage"] [[commands.subcommand.field]] id = "file_id" label = "File ID" type = "string" position = 0 sources = ["usage"] [[commands.subcommand.task]] id = "file" label = "Download a file" fields = ["file_id"] required = ["file_id"] [[commands.subcommand.task]] id = "directory" label = "Download a directory" fields = ["recursive", "file_id"] required = ["file_id"] set = { recursive = [true] } [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["recursive", "file_id"]