Google Workspace CLI (gws) is a command-line interface that connects your terminal directly to Google Workspace services. Instead of juggling web interfaces or writing REST API calls, you can manage Gmail, Drive, Docs, Sheets, Calendar, Chat, and other Workspace tools entirely from the shell.
The tool's most distinctive feature is its dynamic command structure. Rather than shipping with a fixed set of commands, gws reads Google's Discovery Service at runtime and automatically builds its command surface. When Google releases new API endpoints, gws picks them up instantly—no updates required.
Key capabilities include:
--dry-run mode to preview requests before executingThe tool works equally well for humans working in the terminal and AI agents automating Workspace tasks. Developers can chain gws commands in pipelines, use it in CI/CD workflows, or integrate it with custom scripts. The structured JSON responses make it ideal for automation, while the built-in help system and schema introspection keep humans productive without consulting external documentation.
$ npm install -g @googleworkspace/cli
Activity score
95/100
Stars
Forks
Latest version
Last commit
First release
Language
License
Auto-fetched .
★ 10k · v22.2.9 · typescript
★ 43k · v7.0.3 · javascript