gdcli
Agent skill frombadlogic/pi-skills
Google Drive CLI for listing, searching, uploading, downloading, and sharing files and folders.
How to install gdcli
install gdcli
# install the pi-skills pack with the skills CLI
npx skills add badlogic/pi-skills# or add only this skill to Claude Code: copy the folder
gdcli/
# into
~/.claude/skills/gdcli/ (all projects)
.claude/skills/gdcli/ (one project)
1# Google Drive CLI23Command-line interface for Google Drive operations.45## Installation67```bash8npm install -g @mariozechner/gdcli9```1011## Setup1213### Google Cloud Console (one-time)14151. [Create a new project](https://console.cloud.google.com/projectcreate) (or select existing)162. [Enable the Google Drive API](https://console.cloud.google.com/apis/api/drive.googleapis.com)173. [Set app name](https://console.cloud.google.com/auth/branding) in OAuth branding184. [Add test users](https://console.cloud.google.com/auth/audience) (all Gmail addresses you want to use)195. [Create OAuth client](https://console.cloud.google.com/auth/clients):20 - Click "Create Client"21 - Application type: "Desktop app"22 - Download the JSON file2324### Configure gdcli2526First check if already configured:27```bash28gdcli accounts list29```3031If no accounts, guide the user through setup:321. Ask if they have a Google Cloud project with Drive API enabled332. If not, walk them through the Google Cloud Console steps above343. Have them download the OAuth credentials JSON354. Run: `gdcli accounts credentials ~/path/to/credentials.json`365. Run: `gdcli accounts add <email>` (use `--manual` for browserless OAuth)3738## Usage3940Run `gdcli --help` for full command reference.4142Common operations:43- `gdcli <email> ls [folderId]` - List files/folders44- `gdcli <email> ls --query "<query>"` - List with Drive query filter45- `gdcli <email> search "<text>"` - Full-text content search46…
Excerpt shown under the repository's MIT license.
