一键导入
jgdcli
Google Drive CLI (Java) for listing, searching, uploading, downloading, and sharing files and folders.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Google Drive CLI (Java) for listing, searching, uploading, downloading, and sharing files and folders.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when debugging, tracing, or mutating state in a running or testable Java application — inject code at method entry/exit, read/write fields, trace calls, throw exceptions, or verify behavior without recompiling
Configure JReleaser to release projects to GitHub — supports Go, Rust, Java, Zig, C#, Deno, Swift, and 20+ languages. Creates jreleaser.yml and GitHub Actions workflows from proven templates.
Google Calendar CLI (Java) for listing calendars, viewing/creating/updating events, and checking availability.
Gmail CLI (Java) for searching emails, reading threads, sending messages, managing drafts, and handling labels/attachments.
Use when the user wants to create a GitHub fine-grained personal access token with minimal permissions for a specific task — determines minimal permissions and generates a prefill URL for the GitHub web UI
Use when creating git worktrees for Maven projects - prevents SNAPSHOT artifact clashes and corporate plugin resolution failures through isolated local repositories
| name | jgdcli |
| description | Google Drive CLI (Java) for listing, searching, uploading, downloading, and sharing files and folders. |
Command-line interface for Google Drive operations. Java port of gdcli.
Source: https://github.com/maxandersen/jgdcli
Option 1: Run directly with JBang (no install)
jbang jgdcli@maxandersen/skills --help
Option 2: Install as command
jbang app install jgdcli@maxandersen/skills
jgdcli --help
First check if already configured:
jgdcli accounts list
If no accounts, guide the user through setup:
jgdcli accounts credentials ~/path/to/credentials.jsonjgdcli accounts add <email> (use --manual for browserless OAuth)Credentials in ~/.jgcli/ are shared across jgccli, jgmcli, and jgdcli. Set up once, use with all three.
For separate credentials, use named credentials:
jgdcli accounts credentials ~/work-creds.json --name work
jgdcli accounts add work@company.com --credentials work
Run jgdcli --help for full command reference.
Common operations:
jgdcli ls <email> [folderId] - List files/foldersjgdcli ls <email> --query "<query>" - List with Drive query filterjgdcli search <email> "<text>" - Full-text content searchjgdcli download <email> <fileId> [destPath] - Download a filejgdcli upload <email> <localPath> [--folder <folderId>] - Upload a filejgdcli mkdir <email> <name> - Create a folderjgdcli share <email> <fileId> --anyone - Share publiclyTwo different commands:
search "<text>" - Searches inside file contents (fullText)ls --query "<query>" - Filters by metadata (name, type, date, etc.)Use ls --query for filename searches!
Format: field operator value. Combine with and/or, group with ().
Operators: =, !=, contains, <, >, <=, >=
Examples:
# By filename
jgdcli ls <email> --query "name = 'report.pdf'" # exact match
jgdcli ls <email> --query "name contains 'IMG'" # prefix match
# By type
jgdcli ls <email> --query "mimeType = 'application/pdf'"
jgdcli ls <email> --query "mimeType contains 'image/'"
jgdcli ls <email> --query "mimeType = 'application/vnd.google-apps.folder'" # folders
# By date
jgdcli ls <email> --query "modifiedTime > '2024-01-01'"
# By owner/sharing
jgdcli ls <email> --query "'me' in owners"
jgdcli ls <email> --query "sharedWithMe"
# Exclude trash
jgdcli ls <email> --query "trashed = false"
# Combined
jgdcli ls <email> --query "name contains 'report' and mimeType = 'application/pdf'"
Ref: https://developers.google.com/drive/api/guides/ref-search-terms
~/.jgcli/credentials.json - OAuth client credentials (shared with jgccli, jgmcli)~/.jgcli/accounts-drive.json - Account tokens~/.jgcli/downloads/ - Default download location