Back to timeline

Thu, October 1507:00ToolsAPI & pricingMCP & SkillsOpen sourceAPI & pricing guide

Google Workspace CLI: one command-line tool to manage Drive, Gmail, Calendar and other APIs

Decision Brief

What changedGoogle released the open-source CLI tool googleworkspace/cli, which unifies access to Drive, Gmail, Calendar, Sheets and other Workspace APIs with a single command, and ships built-in skill files for AI agents.
Why it mattersThe CLI reads Google's Discovery Service at runtime to dynamically build all commands, so new Google API endpoints are recognized automatically, removing the cost of maintaining a static command list—but it also means interface changes affect developers and agent integrators in real time.
Who should careAI coding tool users
Affected stackGemini
Source confidenceHigh · Official release / blog / repo

Built in Rust, the tool supports npm global install, Homebrew, Nix and prebuilt binaries, and requires Node.js 18+ plus a Google Cloud project with OAuth credentials enabled. Rather than a static command list, it reads Google's Discovery Service at runtime to generate its command surface dynamically, so new Workspace interfaces or methods are picked up automatically. All responses are structured JSON, with --dry-run preview, --page-all auto-pagination to NDJSON, and gws schema to inspect any method's request and response structure. The repo also bundles 100+ skill files (SKILL.md) covering every API type plus 50 common recipes for Gmail, Drive, Docs, Calendar and Sheets, installable in bulk via npx skills add, with a Gemini CLI extension and OpenClaw integration also provided. Authentication covers multiple scenarios: local desktop uses gws auth setup and gws auth login, with credentials encrypted via AES-256-GCM and stored in the system keychain; CI or headless environments can export via gws auth export and set GOOGLE_WORKSPACE_CLI_CREDENTIALS_FILE, or use a service account or pass an existing token via GOOGLE_WORKSPACE_CLI_TOKEN. Note that when an unverified OAuth app is in testing mode, Google limits consent scopes to about 25, while the recommended preset includes 85+ scopes and will fail outright, requiring -s drive,gmail,sheets to select services individually. The project is also under active development, with breaking changes expected before v1.0, so integrators should budget for upgrade costs.

Summary basis: full article readCompiled from the source scope noted above; the original remains authoritative.

Sources

  • Skill Radar(GitHub 趋势)

    Trending hands-on MCP servers, agent skills, and AI-coding tools discovered from GitHub search momentum.

  • GitHub:googleworkspace/cli

Related intel

留言

登入后即可留言,和其他 builder 交换实测心得。

还没有留言,抢头香。