$npx -y skills add googleworkspace/cli --skill recipe-bulk-download-folderList and download all files from a Google Drive folder.
| 1 | # Bulk Download Drive Folder |
| 2 | |
| 3 | > **PREREQUISITE:** Load the following skills to execute this recipe: `gws-drive` |
| 4 | |
| 5 | List and download all files from a Google Drive folder. |
| 6 | |
| 7 | ## Steps |
| 8 | |
| 9 | 1. List files in folder: `gws drive files list --params '{"q": "'\''FOLDER_ID'\'' in parents"}' --format json` |
| 10 | 2. Download each file: `gws drive files get --params '{"fileId": "FILE_ID", "alt": "media"}' -o filename.ext` |
| 11 | 3. Export Google Docs as PDF: `gws drive files export --params '{"fileId": "FILE_ID", "mimeType": "application/pdf"}' -o document.pdf` |