Cloudflare 中文文档
R2
编辑这个页面
跳转官方原文档
Set theme to dark (⇧+D)

Download objects

You can download objects from your bucket from the Cloudflare dashboard or using the Wrangler.

​​ Download objects via the Cloudflare dashboard

  1. Log in to the Cloudflare dashboard and select R2.
  2. From the R2 page in the dashboard, locate and select your bucket.
  3. From your bucket’s page, locate the object you want to download.
  4. At the end of the object’s row, select the menu button and click Download.

​​ Download objects via Wrangler

You can download objects from a bucket, including private buckets in your account, directly.

For example, to download file.bin from test-bucket:

The file will be downloaded into the current working directory. You can also use the --file flag to set a new name for the object as it is downloaded, and the --pipe flag to pipe the download to standard output (stdout).