gcmd
Export and access Google Drive files (docs, sheets, meeting notes)
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Menu
Export and access Google Drive files (docs, sheets, meeting notes)
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Baseado na classificação ocupacional SOC
Manage the belief registry — track claims, detect staleness, resolve conflicts, query contradictions
Create chronologically organized documentation entries
Fetch authenticated web content (SSO, internal pages) via browser session
Fetch web content using curl (faster alternative to WebFetch)
Google Calendar CLI for viewing agenda, adding events, and reminders
Interact with Jira
| name | gcmd |
| description | Export and access Google Drive files (docs, sheets, meeting notes) |
Quick reference for using gcmd CLI tool to work with Google Drive files.
Repository: https://github.com/shanemcd/gcmd
The easiest way to use gcmd is with uvx - no installation or repository cloning required:
# Export a Google Doc as markdown
uvx --from "git+https://github.com/shanemcd/gcmd" gcmd export "https://docs.google.com/document/d/FILE_ID/edit" -o /tmp/
# Export a Google Sheet as CSV (one file per sheet)
uvx --from "git+https://github.com/shanemcd/gcmd" gcmd export "https://docs.google.com/spreadsheets/d/FILE_ID/edit" -o /tmp/
# List recent files
uvx --from "git+https://github.com/shanemcd/gcmd" gcmd list
# Search for files
uvx --from "git+https://github.com/shanemcd/gcmd" gcmd list -q "quarterly report"
# View file info and comments
uvx --from "git+https://github.com/shanemcd/gcmd" gcmd info -v "https://docs.google.com/document/d/FILE_ID/edit"
Tip: Add an alias to your shell for convenience:
alias gcmd='uvx --from "git+https://github.com/shanemcd/gcmd" gcmd'
# Then use it simply:
gcmd export "https://docs.google.com/document/d/FILE_ID/edit" -o /tmp/
gcmd is a Python CLI tool for working with Google Drive from the command line. Useful for:
Use this skill when:
RECOMMENDED: Export to /tmp/ for easy reading by Claude Code
uvx --from "git+https://github.com/shanemcd/gcmd" gcmd export "https://docs.google.com/document/d/FILE_ID/edit" -o /tmp/
# Creates: /tmp/Document Title.md (uses document title as filename)
Export to specific file path:
uvx --from "git+https://github.com/shanemcd/gcmd" gcmd export FILE_ID -o /tmp/meeting-notes.md
# Creates: /tmp/meeting-notes.md
Export all tabs as separate files:
uvx --from "git+https://github.com/shanemcd/gcmd" gcmd export --all-tabs FILE_ID -o /tmp/
# Creates: /tmp/Document Title - Tab1.md, /tmp/Document Title - Tab2.md, etc.
How -o works:
-o: Saves to current directory using document title + .exported.md-o /tmp/ (directory): Saves to /tmp/ using document title + .md extension (no .exported)-o /tmp/file.md (file): Saves to exact path /tmp/file.mdAfter exporting, ALWAYS read the file to provide the user with the content.
Export creates a directory with one CSV file per sheet:
uvx --from "git+https://github.com/shanemcd/gcmd" gcmd export "https://docs.google.com/spreadsheets/d/FILE_ID/edit" -o /tmp/
# Creates: /tmp/Spreadsheet Title/
# Sheet1.csv
# Sheet2.csv
# ...
How it works:
After exporting, read the CSV files to provide the user with the content.
# List recent files (default 20, sorted by modified date)
uvx --from "git+https://github.com/shanemcd/gcmd" gcmd list
# Search for files by name or content
uvx --from "git+https://github.com/shanemcd/gcmd" gcmd list -q "quarterly report"
# List only Google Docs
uvx --from "git+https://github.com/shanemcd/gcmd" gcmd list -t docs
# List with verbose details
uvx --from "git+https://github.com/shanemcd/gcmd" gcmd list -v -n 10
# List only folders
uvx --from "git+https://github.com/shanemcd/gcmd" gcmd list -t folders
# List Google Sheets
uvx --from "git+https://github.com/shanemcd/gcmd" gcmd list -t sheets
# Basic file metadata
uvx --from "git+https://github.com/shanemcd/gcmd" gcmd info "https://docs.google.com/document/d/FILE_ID/edit"
# Detailed info with permissions, tabs, structure, and comments
uvx --from "git+https://github.com/shanemcd/gcmd" gcmd info -v "https://docs.google.com/document/d/FILE_ID/edit"
# Show only comments (without other verbose details)
uvx --from "git+https://github.com/shanemcd/gcmd" gcmd info --show-comments "https://docs.google.com/document/d/FILE_ID/edit"
# Also works with just file ID
uvx --from "git+https://github.com/shanemcd/gcmd" gcmd info FILE_ID -v
Detailed info shows:
# Download to current directory
uvx --from "git+https://github.com/shanemcd/gcmd" gcmd download FILE_ID
# Download to specific path
uvx --from "git+https://github.com/shanemcd/gcmd" gcmd download FILE_ID -o ~/Downloads/myfile.pdf
# Works with URLs
uvx --from "git+https://github.com/shanemcd/gcmd" gcmd download "https://drive.google.com/file/d/FILE_ID/view"
All commands accept multiple URL formats:
# Google Docs
https://docs.google.com/document/d/FILE_ID/edit
https://docs.google.com/document/d/FILE_ID/edit?tab=t.0
# Google Sheets
https://docs.google.com/spreadsheets/d/FILE_ID/edit
# Google Slides
https://docs.google.com/presentation/d/FILE_ID/edit
# Drive files
https://drive.google.com/file/d/FILE_ID/view
# Just the file ID
FILE_ID
When user provides a Google Drive URL:
Export the document to /tmp/:
uvx --from "git+https://github.com/shanemcd/gcmd" gcmd export "URL" -o /tmp/
Read the exported file:
The file will be in /tmp/ with the document title as filename.
Provide the content to the user or answer their questions about it.
Optional cleanup: After helping the user, you can delete the exported file:
rm /tmp/exported-filename.md
# Search for the document
uvx --from "git+https://github.com/shanemcd/gcmd" gcmd list -q "MCP Server Analysis" -t docs
# Get detailed info (tabs, structure)
uvx --from "git+https://github.com/shanemcd/gcmd" gcmd info -v "https://docs.google.com/document/d/FILE_ID/edit"
# Export all tabs to /tmp/ for easy reading
uvx --from "git+https://github.com/shanemcd/gcmd" gcmd export --all-tabs FILE_ID -o /tmp/
# View detailed permissions
uvx --from "git+https://github.com/shanemcd/gcmd" gcmd info -v FILE_ID
# Shows:
# - Who has access (users, groups, domains, public)
# - Permission levels (owner, writer, reader, commenter)
# - Your capabilities (can edit, share, download, etc.)
# View all comments and replies on a document
uvx --from "git+https://github.com/shanemcd/gcmd" gcmd info --show-comments "https://docs.google.com/document/d/FILE_ID/edit"
# Shows:
# - All comments with quoted/highlighted text
# - Authors and timestamps
# - Replies with their authors
# - Status (resolved, deleted)
# - Total comment count
# List recent Google Docs with details
uvx --from "git+https://github.com/shanemcd/gcmd" gcmd list -t docs -v -n 20
# Export all sheets to CSV
uvx --from "git+https://github.com/shanemcd/gcmd" gcmd export "https://docs.google.com/spreadsheets/d/FILE_ID/edit" -o /tmp/
# List the exported files
ls /tmp/Spreadsheet\ Title/
# Read a specific sheet
cat "/tmp/Spreadsheet Title/Sheet1.csv"
--all-tabs to export each tab separately.exported.md extension (auto-ignored by git) when no -o specifiedBefore first use, you need OAuth credentials:
~/.config/gcmd/credentials.jsonOn first use, your browser will open for authentication:
uvx --from "git+https://github.com/shanemcd/gcmd" gcmd list
# Browser opens → sign in → grant permissions → done!
Token is cached at ~/.config/gcmd/token.json for future use.
If authentication fails, delete token and re-authenticate:
rm ~/.config/gcmd/token.json
uvx --from "git+https://github.com/shanemcd/gcmd" gcmd list # Will trigger new auth flow
/tmp/ for exports - Makes files easy to find and readuvx to run directly from GitHub"credentials.json not found": Follow the Authentication setup steps above to create OAuth credentials
"Authentication failed": Delete token and re-authenticate:
rm ~/.config/gcmd/token.json
uvx --from "git+https://github.com/shanemcd/gcmd" gcmd list
"Not a Google Doc": Use download command instead of export for non-Doc files
Browser won't open: The CLI will provide a manual URL to paste in your browser
Add a shell alias for convenience:
alias gcmd='uvx --from "git+https://github.com/shanemcd/gcmd" gcmd'
Export location: Always use -o /tmp/ when exporting so files are in a predictable location for easy reading
File naming: Without -o, exported files use .exported.md extension. With -o /dir/, uses .md
Multi-tab documents: Use --all-tabs to export each tab as a separate file
Verbose mode: Use -v for detailed information (permissions, structure, comments, etc.)
Comments: Use --show-comments to view just comments without other verbose details
Search: The -q flag searches both file names and content
Last updated: 2026-01-20