
Recipe Backup Sheet As Csv
googleworkspace/cliOfficial
A straightforward recipe for getting your Google Sheets data out as CSV files. Shows three different approaches: using the Drive API export endpoint, getting spreadsheet metadata first, or reading values directly through the Sheets API. The direct read method with csv format is probably the cleanest for most use cases. Handy when you need local backups, want to process data with other tools, or just prefer working with CSV over the web interface. Requires the gws-sheets and gws-drive skills to handle the API calls.
- skills.sh installs
- 31.7K
- GitHub stars
- 32.2K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add googleworkspace/cli --skill recipe-backup-sheet-as-csv --agent claude-codeInstalls into .claude/skills of the current project.
Files
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
Sponsors
Promote your product hereReach 125k+ visitors monthlyPromote your product hereReach 125k+ visitors monthly
Agent CaffeineSponsoredClose your lid, come back to finished work
SnugSponsoredThe clipboard manager for the AI eraPromote your product hereReach 125k+ visitors monthly
WaxSponsoredBlock anything with supervision, without erasing your iPhonePromote your product hereReach 125k+ visitors monthly
knobsSponsoredSee your site on any phone, any day, in any language
Details
- Repository
- github.com/googleworkspace/cli
- Categories
- CLI & Terminal, Office & Documents
More from googleworkspace/cli
All 113- Recipe Organize Drive Folder31.7K
- Persona Exec Assistant31.6K
- Recipe Find Free Time31.5K
- Gws Workflow File Announce31.5K
- Recipe Compare Sheet Tabs31.5K
- Persona Content Creator31.5K
- Gws Events Renew31.5K
- Gws Events Subscribe31.4K
- Recipe Plan Weekly Schedule31.4K
- Recipe Bulk Download Folder31.4K
- Recipe Create Doc From Template31.4K
- Recipe Sync Contacts To Sheet31.3K
- Gws Admin Reports31.3K
- Recipe Generate Report From Sheet31.2K
- Recipe Label And Archive Emails31.1K
- Recipe Reschedule Meeting31.1K
- Recipe Save Email To Doc31.1K
- Recipe Block Focus Time31K
- Recipe Watch Drive Changes31K
- Recipe Create Shared Drive31K
- Persona Team Lead31K
- Recipe Share Doc And Notify30.9K
- Recipe Find Large Files30.9K
- Recipe Create Task List30.9K
Recommended
More CLI & Terminal1
recipe-organize-drive-foldergoogleworkspace/cliCreate a Google Drive folder structure and move files into the right locations.31.7Kskills.sh installs
2
persona-exec-assistantgoogleworkspace/cliManage an executive's schedule, inbox, and communications.31.6Kskills.sh installs
3
recipe-find-free-timegoogleworkspace/cliQuery Google Calendar free/busy status for multiple users to find a meeting slot.31.5Kskills.sh installs
4
recipe-compare-sheet-tabsgoogleworkspace/cliRead data from two tabs in a Google Sheet to compare and identify differences.31.5Kskills.sh installs
5
persona-content-creatorgoogleworkspace/cliCreate, organize, and distribute content across Workspace.31.5Kskills.sh installs
6
gws-events-renewgoogleworkspace/cliGoogle Workspace Events: Renew/reactivate Workspace Events subscriptions.31.5Kskills.sh installs