googleworkspace avatar

Recipe Bulk Download Folder

A straightforward recipe for pulling down entire Google Drive folders when you need local copies of everything. It lists all files in a target folder, then downloads each one using the appropriate method depending on file type. Regular files get downloaded directly, while Google Docs get exported as PDFs since you can't download the native format. The three-step process handles the common gotcha of mixed file types automatically. Useful for backing up project folders, grabbing client deliverables, or migrating content. Requires the gws-drive skill and assumes you already have Google Workspace CLI configured with proper permissions.

skills.sh installs
31.4K
GitHub stars
32.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add googleworkspace/cli --skill recipe-bulk-download-folder --agent claude-code

Installs into .claude/skills of the current project.

Files

Bulk Download Drive Folder

PREREQUISITE: Load the following skills to execute this recipe: gws-drive

List and download all files from a Google Drive folder.

Steps

  1. List files in folder: gws drive files list --params '{"q": "'\''FOLDER_ID'\'' in parents"}' --format json
  2. Download each file: gws drive files get --params '{"fileId": "FILE_ID", "alt": "media"}' -o filename.ext
  3. Export Google Docs as PDF: gws drive files export --params '{"fileId": "FILE_ID", "mimeType": "application/pdf"}' -o document.pdf

Sponsors

Details

Repository
github.com/googleworkspace/cli
Category
CLI & Terminal

More from googleworkspace/cli

All 113
1googleworkspace avatarrecipe-sync-contacts-to-sheetgoogleworkspace/cliExport Google Contacts directory to a Google Sheets spreadsheet.31.3Kskills.sh installs
2googleworkspace avatargws-admin-reportsgoogleworkspace/cliGoogle Workspace Admin SDK: Audit logs and usage reports.31.3Kskills.sh installs
3googleworkspace avatarrecipe-generate-report-from-sheetgoogleworkspace/cliRead data from a Google Sheet and create a formatted Google Docs report.31.2Kskills.sh installs
4googleworkspace avatarrecipe-reschedule-meetinggoogleworkspace/cliMove a Google Calendar event to a new time and automatically notify all attendees.31.1Kskills.sh installs
5googleworkspace avatarrecipe-block-focus-timegoogleworkspace/cliCreate recurring focus time blocks on Google Calendar to protect deep work hours.31Kskills.sh installs
6googleworkspace avatarrecipe-watch-drive-changesgoogleworkspace/cliSubscribe to change notifications on a Google Drive file or folder.31Kskills.sh installs