recipe-backup-sheet-as-csv
Installation
Summary
Export Google Sheets spreadsheets as CSV files for backup or local processing.
- Requires
gws-sheetsandgws-driveskills as prerequisites - Offers three export approaches: retrieve spreadsheet metadata, export via Drive API with MIME type specification, or read sheet values directly in CSV format
- Supports flexible range selection and sheet targeting for granular control over exported data
SKILL.md
Export a Google Sheet as CSV
PREREQUISITE: Load the following skills to execute this recipe:
gws-sheets,gws-drive
Export a Google Sheets spreadsheet as a CSV file for local backup or processing.
Steps
- Get spreadsheet details:
gws sheets spreadsheets get --params '{"spreadsheetId": "SHEET_ID"}' - Export as CSV:
gws drive files export --params '{"fileId": "SHEET_ID", "mimeType": "text/csv"}' - Or read values directly:
gws sheets +read --spreadsheet SHEET_ID --range 'Sheet1' --format csv
Related skills
More from googleworkspace/cli
gws-gmail
Gmail: Send, read, and manage email.
26.1Kgws-docs
Read and write Google Docs.
26.0Kgws-drive
Google Drive: Manage files, folders, and shared drives.
26.0Kgws-sheets
Google Sheets: Read and write spreadsheets.
24.7Kgws-calendar
Google Calendar: Manage calendars and events.
24.6Kgws-docs-write
Google Docs: Append text to a document.
21.8K