gws

officialscriptablepopularproductivitybrew

Google · Drive, Gmail, Calendar, Sheets, and Chat from one official CLI.

$ brew install googleworkspace-cli
One-liner to try
$ gws auth setup

Agent pack

Copy into an agent

A markdown-ready setup brief with install, verify, safe starting commands, and guardrails for AI agents.

Open .mdJSON
Readiness
Great for agents · 90/100
Verify
gws --help
Agent URL
/cli/gws/agent.md

Quick reference

Install
brew install googleworkspace-cli
Verify
gws --help
First command
gws auth setup
Machine JSON
/cli/gws.json

About

The official CLI from Google. Drive, Gmail, Calendar, Sheets, and Chat from one official CLI. Start with `gws auth setup` and go from there. Supports structured output — good for scripts and agents.

Example workflow

1. gws auth setup
2. gws gmail users messages list --params '{"userId": "me", "q": "is:unread newer_than:7d", "maxResults": 5}'
3. gws calendar events list --params '{"calendarId": "primary", "maxResults": 5}' --dry-run

Alternatives worth considering