Manage Google Drive from the command line with gdcli — list, full-text search, upload, download, create folders, and share files, using Drive query syntax for precise filtering.
---
name: gdcli
description: Google Drive CLI for listing, searching, uploading, downloading, and sharing files and folders. Use to locate, organize, or retrieve cloud-hosted Drive files from the shell.
---
Drives Google Drive through the `gdcli` command-line tool.
## How to use
1. Install with `npm install -g @mariozechner/gdcli`.
2. First-time setup: create a Google Cloud project, enable the Drive API, create a Desktop OAuth client, then run `gdcli accounts credentials <creds.json>` and `gdcli accounts add <email>`.
3. List and find files: `gdcli <email> ls [folderId]`, `gdcli <email> search "<text>"` for full-text content, and `gdcli <email> ls --query "name contains 'report'"` for metadata/filename filters.
4. Move data: `download <fileId>`, `upload <localPath> --folder <id>`, `mkdir <name>`, and `share <fileId> --anyone`. Query syntax supports `=`, `contains`, date and owner filters combined with `and`/`or`.
Full skill & source: https://github.com/badlogic/pi-skills/tree/90bb51cae36515a648515b633a81c0c6efc8c74d/gdcliSign in to rate and review this skill.
No reviews yet. Be the first to review this skill.