--- id: googleworkspace/cli/gws-shared version: "e4be88d1" license: Apache-2.0 install: manual updated: 2026-07-22 --- # gws-shared — gws-shared is a reference guide for the gws CLI's core patterns: browser-based OAuth and service account authentication, global flags for output formatting and API validation, and method-specific options for pagination and file handling. It covers essential syntax, shell quoting tips, and security practices for working with Google Workspace APIs. Publisher: googleworkspace · Stars: 30031 · Updated: 2026-07-22 Install (manual): `git clone https://github.com/googleworkspace/cli` ## SKILL.md # gws — Shared Reference ## Installation The `gws` binary must be on `$PATH`. See the project README for install options. ## Authentication ```bash # Browser-based OAuth (interactive) gws auth login # Service Account export GOOGLE_APPLICATION_CREDENTIALS=/path/to/key.json ``` ## Global Flags | Flag | Description | |------|-------------| | `--format ` | Output format: `json` (default), `table`, `yaml`, `csv` | | `--dry-run` | Validate locally without calling the API | | `--sanitize