gdrv-cli
Google Drive CLI
Manage Google Drive using the gdrv command-line tool.
Prerequisites
gdrv --version
export GDRV_CREDENTIALS='path/to/credentials.json'
gdrv auth login
Authentication
- Service account or OAuth2 credentials
- Environment variable:
GDRV_CREDENTIALS - OAuth flow:
gdrv auth login
File Operations
Upload
gdrv upload file.txt --folder "Backups"
gdrv upload ./folder --recursive --folder "Archive"
Download
gdrv download FILE_ID --output ./downloads
gdrv download --query "name contains 'Report'" --output ./reports
List & Search
gdrv list --folder "Documents" --limit 100
gdrv search "*.pdf" --folder "Reports"
gdrv list --trashed
Folder Management
gdrv folder create "New Folder" --parent PARENT_ID
gdrv folder list --parent ROOT
gdrv folder delete FOLDER_ID --confirm
Permissions
gdrv share FILE_ID --email user@example.com --role editor
gdrv share FILE_ID --anyone --role viewer
gdrv permissions list FILE_ID
gdrv permissions revoke FILE_ID PERMISSION_ID
Agent Best Practices
- Use folder names when possible; resolve IDs with
gdrv list - Recursive uploads for directory backups
- Query syntax for complex searches
- Service accounts for automation (no user interaction)
More from dl-alexandre/skills
gpd-cli
Manage Google Play Developer Console using the gpd CLI. Use when working with Android app publishing, Play Store releases, app reviews, Android vitals, in-app purchases, subscriptions, or when the user mentions Google Play, Play Store, Android publishing, or gpd.
16unifi-cli
Manage local UniFi Network controllers using the unifi CLI. Use when working with Dream Machine, Cloud Key, or self-hosted UniFi controllers.
12gpd-betagroups
Orchestrate Google Play beta testing groups and distribution using gpd. Use when managing testers, internal testing, or beta rollouts.
12abc-cli
Manage Apple Business Connect listings using the abc CLI. Use when working with business locations, place cards, hours, or when the user mentions Apple Business Connect, Apple Maps business, location listings, or abc.
11ams-cli
Query Apple Maps Server APIs using the ams CLI. Use when working with geocoding, reverse geocoding, search, directions, or when the user mentions Apple Maps, geolocation, map data, or ams.
11gpd-id-resolver
Resolve Google Play identifiers (package, tracks, version codes, products, subscriptions) using gpd. Use when commands require IDs or exact values.
11