recipe-bulk-download-folder
Installation
Summary
Bulk download all files from a Google Drive folder with automatic format conversion.
- Requires the
gws-driveskill andgwsbinary to execute - Lists folder contents by querying parent folder ID, then downloads each file individually
- Supports exporting Google Docs and Sheets as PDF or other formats during download
- Workflow: query folder, iterate through results, download or export each file to local storage
SKILL.md
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
- List files in folder:
gws drive files list --params '{"q": "'\''FOLDER_ID'\'' in parents"}' --format json - Download each file:
gws drive files get --params '{"fileId": "FILE_ID", "alt": "media"}' -o filename.ext - Export Google Docs as PDF:
gws drive files export --params '{"fileId": "FILE_ID", "mimeType": "application/pdf"}' -o document.pdf
Related skills
More from googleworkspace/cli
gws-gmail
Gmail: Send, read, and manage email.
26.2Kgws-docs
Read and write Google Docs.
26.1Kgws-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.7Kgws-docs-write
Google Docs: Append text to a document.
21.8K