OAuth
💾 Google Drive
List, search, download, and upload files.
What you can do
- Search files by name, type, or folder
- Download Drive files (with format conversion for Docs)
- Upload local files into a chosen folder
Setup
agentio gdrive profile add
Command reference
-
agentio gdrive listList files
--profile <name>--limit <n>--folder <id>--query <query>--order <field>--trash -
agentio gdrive foldersList folders
--profile <name>--limit <n>--parent <id>--query <query> -
agentio gdrive get <file-id-or-url>Get file metadata
--profile <name> -
agentio gdrive searchSearch for files
--query <text>--profile <name>--limit <n>--type <mime>--folder <id> -
agentio gdrive download <file-id-or-url>Download a file (or export Google Workspace files)
--profile <name>--output <path>--export <format> -
agentio gdrive put <file-path>Upload a file to Google Drive
--profile <name>--name <name>--folder <id>--type <mime>--convert--public -
agentio gdrive copy <file-id-or-url>Copy a file (server-side clone via Drive API)
--profile <name>--name <name>--folder <id> -
agentio gdrive mkdir <name>Create a folder
--profile <name>--parent <id> -
agentio gdrive rename <file-id-or-url> <new-name>Rename a file or folder
--profile <name> -
agentio gdrive move <file-id-or-url> <folder-id-or-url>Move a file or folder to another folder
--profile <name> -
agentio gdrive trash <file-id-or-url>Move a file to the trash
--profile <name> -
agentio gdrive permissions <file-id-or-url>List permissions on a file
--profile <name> -
agentio gdrive share <file-id-or-url>Share a file by creating a permission
--profile <name>--anyone--user <email>--domain <domain>--group <email>--role <role>--notify--message <text>--allow-discovery -
agentio gdrive unshare <file-id-or-url>Remove a permission from a file
--profile <name>--permission-id <id>--anyone
Related changelog entries
- fix omit allowFileDiscovery on user/group shares 2e576c9
- feat add mkdir, rename, and move commands (#24) f636db1
- feat add copy command for server-side file cloning b660daa
- feat add share, unshare, permissions commands + put --public d889db7
- feat add LLM-friendly examples to all gdrive commands 6172e0f
- feat add Google Drive service with export/convert support 5acfa38