| name | google-sheets |
| description | Read and write Google Sheets spreadsheets. Use for getting data, creating sheets, appending rows, updating cells, and managing tabs. |
Google Sheets
Read, write, and manage Google Sheets spreadsheets.
Environment Variables
GOOGLE_SHEETS_ACCESS_TOKEN - Google OAuth2 access token with Sheets and Drive scopes
Commands
google-sheets get <spreadsheetId>
google-sheets get <spreadsheetId> --range "Sheet1!A1:D10"
google-sheets create --title "Q4 Report"
google-sheets append <spreadsheetId> --range "A:B" --values '[["Name","Score"],["Alice","95"]]'
google-sheets update <spreadsheetId> --range "A1:B2" --values '[["Name","Score"],["Alice","95"]]'
google-sheets clear <spreadsheetId> --range "A1:B10"
google-sheets add-sheet <spreadsheetId> --title "Summary"
google-sheets list [-l limit]
Output Format
JSON objects. Example for get with range:
{
"spreadsheetId": "1abc...",
"range": "Sheet1!A1:D3",
"values": [["Name","Score"],["Alice","95"],["Bob","87"]]
}