| name | gws-conventions |
| description | Provides Google Workspace CLI commands when reading Google Sheets, accessing Docs, or querying Workspace APIs via the gws CLI tool. |
| user-invocable | false |
Google Workspace CLI (gws)
Use the gws CLI (https://github.com/googleworkspace/cli) to access Google Sheets, Docs, and other Workspace APIs.
Google Sheets
gws sheets spreadsheets get --params '{"spreadsheetId": "SHEET_ID", "fields": "sheets.properties"}'
gws sheets spreadsheets values get --params "{\"spreadsheetId\": \"SHEET_ID\", \"range\": \"Sheet Name\"}"
gws sheets spreadsheets values get --params "{\"spreadsheetId\": \"SHEET_ID\", \"range\": \"Sheet Name!A1:D10\"}"
Important: Sheets ranges use ! which bash interprets as history expansion. Use double-quoted --params with escaped inner quotes, or avoid ! by using just the sheet name as the range.