Productivity

recipe-bulk-download-folder

googleworkspace/cli · updated Apr 8, 2026

$npx skills add https://github.com/googleworkspace/cli --skill recipe-bulk-download-folder
summary

Bulk download all files from a Google Drive folder with automatic format conversion.

  • Requires the gws-drive skill and gws binary 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

1d:["$","div",null,{"className":"prose prose-invert max-w-none prose-headings:font-semibold prose-headings:tracking-tight prose-h1:text-4xl prose-h1:mb-2 prose-h2:text-2xl prose-h2:mb-2 prose-h3:text-lg prose-h3:mb-2 prose-p:text-muted-foreground prose-li:text-muted-foreground prose-code:bg-muted prose-code:text-foreground prose-code:px-1 prose-code:py-0.5 prose-code:rounded-sm prose-code:text-sm prose-code:before:content-none prose-code:after:content-none prose-pre:bg-muted prose-pre:text-foreground prose-pre:border prose-pre:border-border prose-pre:rounded-md [&_table]:!border-[color:var(--border)] [&_th]:!border-[color:var(--border)] [&_td]:!border-[color:var(--border)]","dangerouslySetInnerHTML":{"__html":"<h1>Bulk Download Drive Folder</h1>\n<blockquote>\n<p><strong>PREREQUISITE:</strong> Load the following skills to execute this recipe: <code>gws-drive</code></p>\n</blockquote>\n<p>List and download all files from a Google Drive folder.</p>\n<h2>Steps</h2>\n<ol>\n<li>List files in folder: <code>gws drive files list --params '{"q": "'\''FOLDER_ID'\'' in parents"}' --format json</code></li>\n<li>Download each file: <code>gws drive files get --params '{"fileId": "FILE_ID", "alt": "media"}' -o filename.ext</code></li>\n<li>Export Google Docs as PDF: <code>gws drive files export --params '{"fileId": "FILE_ID", "mimeType": "application/pdf"}' -o document.pdf</code></li>\n</ol>"}}]