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

Create buckets

You can create a bucket from the Cloudflare dashboard or using Wrangler.

​​ Bucket-Level Operations

Create a bucket with the r2 bucket create command:

List buckets in the current account with the r2 bucket list command:

Delete a bucket with the r2 bucket delete command. Note that the bucket must be empty and all objects must be deleted.

​​ Notes

  • Bucket names and buckets are not public by default. To allow public access to a bucket, visit the public bucket documentation.
  • Invalid (unauthorized) access attempts to private buckets do not incur R2 operations charges against that bucket. Refer to the R2 pricing FAQ to understand what operations are billed vs. not billed.
  • The TLS (SSL) certificate created for each R2 bucket uses a wildcard certificate of the form *.r2.cloudflarestorage.com, which prevents account IDs and names from showing up in Certificate Transparency logs.