Google Workspace CLI (gws) is a command-line tool designed to interact with Google Workspace services such as Drive, Gmail, Calendar, Sheets, and more from a single interface. It dynamically generates its command structure using Google’s Discovery Service, allowing it to automatically support new API endpoints as they become available. The tool eliminates the need for manual REST API calls by providing structured commands and built-in help for each resource and method. It outputs structured JSON responses, making it easy for developers, scripts, and AI agents to process results programmatically. The CLI supports multiple authentication methods, including OAuth login, service accounts, and environment-based credentials for automated environments. With built-in agent skills and automation features, it enables developers and AI systems to manage and automate Google Workspace workflows efficiently.
Features
- Dynamically builds commands from Google’s Discovery Service to automatically support new Workspace APIs.
- Provides structured JSON output for easy automation, scripting, and AI agent integration.
- Supports multiple Google Workspace services including Drive, Gmail, Calendar, Sheets, Docs, and Chat.
- Includes built-in authentication workflows such as OAuth login, service accounts, and access tokens.
- Offers helpful command options like --help, --dry-run, and schema introspection for easier API usage.
- Supports pagination and streaming results in NDJSON format for large data operations.
- Includes AI agent skills and workflow helpers for automating common Workspace tasks.
- Can run as an MCP server to expose Workspace APIs as structured tools for AI clients.
License
Apache License V2.0Follow Google Workspace CLI
User Reviews
-
Game changing tool to use CLI on Google Workspace apps