gws-shared
gws CLI: Shared patterns for authentication, global flags, and output formatting.
npx skills add googleworkspace/cli --skill gws-shared --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# 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 <FORMAT>` | Output format: `json` (default), `table`, `yaml`, `csv` | | `--dry-run` | Validate locally without calling the API | | `--sanitize <TEMPLATE>` | Screen responses through Model Armor | ## CLI Syntax ```bash gws <service> <resource> [sub-resource] <method> [flags] ``` ### Method Flags | Flag | Description | |------|-------------| | `--params '{"key": "val"}'` | URL/query parameters | | `--json '{"key": "val"}'` | Request body | | `-o, --output <PATH>` | Save binary responses to file | | `--upload <PATH>` | Upload file content (multipart) | | `--page-all` | Auto-paginate (NDJSON output) | | `--page-limit <N>` | Max pages when using --page-all (default: 10) | | `--page-delay <MS>` | Delay between pages in ms (default: 100) | ## Security Rules - **Never** output secrets (API keys, tokens) directly - **Always** confirm with user be
- Installation
- Authentication
- Global Flags
- CLI Syntax
- Method Flags
- Security Rules
- Shell Tips
- Community & Feedback Etiquette
Browser-based OAuth (interactive)
gws auth login
Service Account
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/key.json
gws <service> <resource> [sub-resource] <method> [flags]
gws sheets +read --spreadsheet ID --range 'Sheet1!A1:D10'
gws sheets +read --spreadsheet ID --range "Sheet1!A1:D10"
gws drive files list --params '{"pageSize": 5}'What does the gws-shared skill do?
gws CLI: Shared patterns for authentication, global flags, and output formatting.
How do I install it?
Run `npx skills add googleworkspace/cli --skill gws-shared --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From googleworkspace/cli, a repository with 30,193 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.