# Recipe Backup Sheet As Csv > Export a Google Sheets spreadsheet as a CSV file for local backup or processing. Source: https://skillsagentes.com/skills/googleworkspace/cli/recipe-backup-sheet-as-csv Repository: https://github.com/googleworkspace/cli Author: googleworkspace License: Apache-2.0 Updated: hace 4 meses Context cost: 20 tok installed, 211 tok once triggered, 211 tok with every bundled file Bundle: 1 file, 845 B Permissions requested: none declared ## Install ```bash npx -y skills add googleworkspace/cli --skill recipe-backup-sheet-as-csv --agent claude-code ``` ## What it does - Obtiene los detalles de una hoja de cálculo con gws sheets spreadsheets get - Exporta la hoja como CSV con gws drive files export usando mimeType text/csv - Alternativamente lee valores directamente con gws sheets +read --format csv ## Use it when - Necesitas hacer una copia de seguridad local de una Google Sheet - Necesitas procesar los datos de una hoja de cálculo como archivo CSV ## What triggers it - "Exporta esta hoja de Google Sheets como CSV" - "Haz una copia de seguridad local de este spreadsheet" - "Descarga los valores de la hoja 'Sheet1' en formato CSV" ## Before you install - Requiere el binario gws y las skills gws-sheets y gws-drive cargadas. ## Files - SKILL.md — 845 B ## SKILL.md Reproduced verbatim from googleworkspace/cli under Apache-2.0. This section is the upstream document and is in English. # 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 1. Get spreadsheet details: `gws sheets spreadsheets get --params '{"spreadsheetId": "SHEET_ID"}'` 2. Export as CSV: `gws drive files export --params '{"fileId": "SHEET_ID", "mimeType": "text/csv"}'` 3. Or read values directly: `gws sheets +read --spreadsheet SHEET_ID --range 'Sheet1' --format csv` --- Skills Agentes — https://skillsagentes.com/skills/googleworkspace/cli/recipe-backup-sheet-as-csv