Agent Skillscomposio-community/awesome-agent-clis › Google Suite CLI (gogcli)

Google Suite CLI (gogcli)

GitHub

gogcli 是用于与 Google Workspace 服务交互的 CLI 工具,支持邮件、日历、云盘、表格等操作的自动化脚本化调用。

Trigger Scenarios

需要发送或搜索 Gmail 邮件 管理 Google Calendar 日程 操作 Google Drive 文件上传下载 读写 Google Sheets 数据 自动化 Google Workspace 日常任务

Install

npx skills add composio-community/awesome-agent-clis --skill Google Suite CLI (gogcli) -g -y
More Options

Non-standard path

npx skills add https://github.com/composio-community/awesome-agent-clis/tree/master/gogcli -g -y

Use without installing

npx skills use composio-community/awesome-agent-clis@Google Suite CLI (gogcli)

指定 Agent (Claude Code)

npx skills add composio-community/awesome-agent-clis --skill Google Suite CLI (gogcli) -a claude-code -g -y

安装 repo 全部 skill

npx skills add composio-community/awesome-agent-clis --all -g -y

预览 repo 内 skill

npx skills add composio-community/awesome-agent-clis --list

SKILL.md

Frontmatter
{
    "name": "Google Suite CLI (gogcli)",
    "description": "CLI for Gmail, Calendar, Chat, Drive, Docs, Sheets, Slides, Forms, Contacts, Tasks, Keep, and Admin. Use when an agent needs to interact with any Google Workspace service — send emails, manage calendar events, search Drive, read\/write spreadsheets, or manage contacts."
}

gogcli — Google in your terminal

Fast, script-friendly CLI for Gmail, Calendar, Chat, Classroom, Drive, Docs, Slides, Sheets, Forms, Apps Script, Contacts, Tasks, People, Admin, Groups, and Keep.

Installation

brew install gogcli

Or build from source:

git clone https://github.com/steipete/gogcli.git
cd gogcli && make

Authentication

Requires OAuth2 credentials from Google Cloud Console:

# Store OAuth client credentials (one-time)
gog auth credentials ~/Downloads/client_secret_....json

# Authorize an account
gog auth add you@gmail.com

# Set default account
export GOG_ACCOUNT=you@gmail.com

# Verify
gog gmail labels list

For headless/CI environments, use --manual or --remote auth flows, or pass --access-token directly.

Key Commands

Gmail

gog gmail search "from:boss subject:urgent"
gog gmail search "is:unread" --max 10 --json
gog gmail send --to recipient@example.com --subject "Hello" --body "Message body"
gog gmail send --to recipient@example.com --subject "Report" --attach report.pdf
gog gmail labels list
gog gmail drafts list

Calendar

gog calendar list                          # today's events
gog calendar list --days 7 --json          # next 7 days, JSON output
gog calendar create --title "Meeting" --start "2025-01-15T10:00:00" --duration 1h
gog calendar delete <eventId>
gog calendar freebusy --emails "a@co.com,b@co.com" --days 3

Drive

gog drive list
gog drive search "quarterly report"
gog drive upload ./file.pdf
gog drive download <fileId>
gog drive share <fileId> --email user@example.com --role writer

Contacts

gog contacts search "John"
gog contacts create --name "Jane Doe" --email jane@example.com --phone "+1234567890"
gog contacts update <resourceName> --title "CTO" --company "Acme"

Sheets

gog sheets read <spreadsheetId> --range "Sheet1!A1:D10" --json
gog sheets write <spreadsheetId> --range "Sheet1!A1" --values '[["Name","Score"],["Alice",95]]'
gog sheets create --title "New Sheet"

Tasks

gog tasks list
gog tasks add "Buy groceries" --due "2025-01-20"
gog tasks done <taskId>

Chat (Workspace only)

gog chat spaces list
gog chat send --space <spaceId> --message "Hello team"

Docs & Slides

gog docs create --title "Meeting Notes"
gog docs export <docId> --format markdown
gog slides create --title "Q4 Presentation"

Output Modes

  • Default: human-readable text
  • --json: structured JSON output for scripting/agents
  • GOG_HELP=full gog --help: full expanded command list

Multiple Accounts

gog auth add work@company.com
gog auth add personal@gmail.com
gog --account work@company.com gmail search "project update"

Agent-Friendly Features

  • JSON output with --json flag on all commands
  • Command allowlist via GOG_ALLOWED_COMMANDS for sandboxed/agent runs
  • Non-interactive auth flows (--manual, --remote, --access-token)
  • Auto-refreshing OAuth tokens
  • Structured exit codes

Version History

  • 9f765d2 Current 2026-07-24 16:03

Same Skill Collection

aws-cli/SKILL.md
coderabbit-cli/SKILL.md
composio-cli/SKILL.md
elevenlabs-cli/SKILL.md
gcloud-cli/SKILL.md
github-cli/SKILL.md
gitlab-cli/SKILL.md
google-workspace-cli/SKILL.md
mailcoach-cli/SKILL.md
neon-cli/SKILL.md
ntn/SKILL.md
planetscale-cli/SKILL.md
posthog-cli/SKILL.md
railway-cli/SKILL.md
ramp-cli/SKILL.md
remotion-cli/SKILL.md
resend-cli/SKILL.md
sendblue-cli/SKILL.md
sentry-cli/SKILL.md
sonoscli/SKILL.md
stripe-cli/SKILL.md
stripe-projects-cli/SKILL.md
supabase-cli/SKILL.md
tavily-cli/SKILL.md
turso-cli/SKILL.md
vercel-cli/SKILL.md
visa-cli/SKILL.md
wacli/SKILL.md
kapso-cli/SKILL.md

Metadata

Files
0
Version
9f765d2
Hash
f108edf7
Indexed
2026-07-24 16:03

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-28 18:59
浙ICP备14020137号-1 $Carte des visiteurs$