---
id: ssh2-recipe-bulk-download-folder
name: "recipe-bulk-download-folder"
url: https://skills.yangsir.net/skill/ssh2-recipe-bulk-download-folder
author: googleworkspace
domain: ai-agent-external-interaction
tags: ["google-drive", "bulk-downloads", "file-management", "cloud-storage-automation", "cli-automation"]
install_count: 15100
rating: 4.50 (20 reviews)
github: https://github.com/googleworkspace/cli
---

# recipe-bulk-download-folder

> 用于列出Google Drive指定文件夹中的所有文件，并支持批量下载。

**Stats**: 15,100 installs · 4.5/5 (20 reviews)

## Before / After 对比

### 批量下载云端文件，告别手动操作。

## Readme

# 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`



---
*Source: https://skills.yangsir.net/skill/ssh2-recipe-bulk-download-folder*
*Markdown mirror: https://skills.yangsir.net/api/skill/ssh2-recipe-bulk-download-folder/markdown*