Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Command Line Tools for Google Workspace

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Comparison of gog, GAM7 and gws

Table 1:Command Line Tools for Google Workspace

Aspect

gog

GAM7

gws

Status

Active

Active

Low activity (last commit 2026-03)[1]

Target users

Individuals, scripts and AI agents

Google Workspace administrators

Developers and AI agents

Command design

Curated, task-oriented commands (e.g., gog gmail search), with a Discovery API fallback (gog api call)

Its own admin-oriented grammar (e.g., gam print users, gam user <email> ...)

Generated at runtime from Google Discovery Service (e.g., gws drive files list --params '{...}'), plus + helper commands

Consumer Google account?

Y

N[2]

Y

Workspace administration?

Partial[3]

Y[4]

Y[5]

Bulk processing?

Unknown

Y[6]

Unknown

Multiple accounts?

Y[7]

Y[8]

Unknown[9]

Output formats

JSON (--json), TSV (--plain), human-readable

CSV, optionally uploaded to Google Sheets (todrive)

JSON (default), table, YAML, CSV (--format)

AI agent support

Agent skills, gog schema, MCP server (gog mcp)

N

100+ agent skills, Gemini CLI extension, gws schema[10]

Safety controls

--readonly, command allowlists, --gmail-no-send, dry-run plans

Unknown

--dry-run, Model Armor (--sanitize)

Installation

Homebrew, go install, prebuilt binaries, Docker

Install script, Windows installer, pip install gam7

Prebuilt binaries, npm, Homebrew, cargo install, Nix

Best fit

Personal Google Workspace work and AI agents

Domain administration and bulk user/data management

Raw access to any Google Workspace API

Language

Go

Python

Rust

License

MIT

Apache 2.0

Apache 2.0

Popularity (Stars)

~8.5k ★

~4.3k ★

~31.6k ★

Other Realted Tools

References

Footnotes
  1. Latest release v0.22.5 (2026-03-31). The README warns of breaking changes before v1.0 and says it is not an officially supported Google product.

  2. Requires a paid, or Education/Non-profit, edition of Google Workspace.

  3. gog admin and gog groups; requires a Workspace domain and a service account with domain-wide delegation.

  4. Core purpose: users, groups, org units, ChromeOS and mobile devices, reports, Vault, etc.

  5. Via the Admin SDK APIs exposed through Discovery.

  6. gam csv <file> gam ... runs a command per CSV row; gam batch/gam tbatch run command files.

  7. Multiple accounts, account aliases (gog auth alias set) and --account.

  8. Multiple customers/domains via sections in gam.cfg.

  9. Not documented in the README; credentials are selected via environment variables such as GOOGLE_WORKSPACE_CLI_CREDENTIALS_FILE.

  10. The built-in MCP server (gws mcp) was removed.