Loading...
Loading...
gws CLI: Shared patterns for authentication, global flags, and output formatting.
npx skill4agent add googleworkspace/cli gws-sharedgws$PATH# Browser-based OAuth (interactive)
gws auth login
# Service Account
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/key.json| Flag | Description |
|---|---|
| Output format: |
| Validate locally without calling the API |
| Screen responses through Model Armor |
gws <service> <resource> [sub-resource] <method> [flags]| Flag | Description |
|---|---|
| URL/query parameters |
| Request body |
| Save binary responses to file |
| Upload file content (multipart) |
| Auto-paginate (NDJSON output) |
| Max pages when using --page-all (default: 10) |
| Delay between pages in ms (default: 100) |
--dry-run--sanitizehttps://github.com/googleworkspace/clihttps://github.com/googleworkspace/cli/issues