SimpleNews.ai

Google Workspace CLI Brings Unified Command-Line Access to Drive, Gmail, Calendar, and More

Thursday, March 5, 2026

Google launched the Google Workspace CLI (gws) on March 2, 2026, providing developers with a unified command-line tool for managing Google Drive, Gmail, Calendar, Sheets, Docs, Chat, and Admin SDK. The tool, which gained 565 stars on GitHub within days of launch, fills a significant gap in the AI agent ecosystem by offering a single interface for the entire Workspace suite.

Built on Rust and Google's Discovery Service API

The CLI is written in Rust for performance and dynamically generated from Google's Discovery Service API, enabling automatic support for all Google Workspace APIs without manual updates. This architecture ensures the tool stays current as Google adds or modifies Workspace features.

Key technical capabilities include:

  • OAuth2 authentication for individual users via gws auth login
  • Domain-Wide Delegation for machine-to-machine authentication
  • JSON output mode for programmatic integration
  • Support for all major Workspace products: Drive, Gmail, Calendar, Sheets, Docs, Chat, and Admin SDK

Dedicated AI Agent Skills for Coding Assistants

The tool includes pre-built AI agent skills designed for integration with Claude Code, Cursor, and other AI coding assistants. This feature allows developers to automate complex Workspace tasks using natural language commands through their preferred AI tools. The Japanese developer community has particularly embraced this capability, highlighting use cases like automating Gmail filter creation and forwarding settings that previously required tedious UI navigation.

Unified Alternative to Fragmented Tools

Before the Workspace CLI, developers relied on fragmented, unofficial tools like gcalcli for specific Google services. The new CLI consolidates these capabilities into a single, officially-supported tool, though the exact nature of its official status remains somewhat ambiguous—the project appears to be led by Google engineers but may not carry traditional "official Google product" designation.

Other alternatives in the space include GAM for Google Workspace administration and gogcli for multi-account management.

The timing of the March 2, 2026 launch aligns with the maturation of the AI agent skills ecosystem and emerging standards around tools like OpenClaw, positioning the Workspace CLI as a foundational component for AI-driven Workspace automation.

Key Takeaways

  • Google Workspace CLI launched March 2, 2026, gaining 565 GitHub stars within 2-3 days
  • Written in Rust and dynamically generated from Google's Discovery Service API for automatic support of all Workspace APIs
  • Includes dedicated AI agent skills for integration with Claude Code, Cursor, and other AI coding assistants
  • Supports OAuth2 and Domain-Wide Delegation authentication, plus JSON output for programmatic use
  • Provides unified command-line access to Drive, Gmail, Calendar, Sheets, Docs, Chat, and Admin SDK, replacing fragmented unofficial tools