Skip to main content

Get started

还没翻译译自英文(developers.cloudflare.com)本页 13 段都还没译

Cloudflare R2 Storage allows developers to store large amounts of unstructured data without the costly egress bandwidth fees associated with typical cloud storage services.

Before you begin

You need a Cloudflare account with an R2 subscription. If you do not have one:

  1. Go to the Cloudflare Dashboard.
  2. Select Storage & databases > R2 > Overview
  3. Complete the checkout flow to add an R2 subscription to your account.

R2 is free to get started with included free monthly usage. You are billed for your usage on a monthly basis. Refer to Pricing for details.

dash.cloudflare.com

Choose how to access R2

R2 supports multiple access methods, so you can choose the one that fits your use case best:

MethodUse when
Workers APIYou are building an application on Cloudflare Workers that needs to read or write from R2
S3You want to use S3-compatible SDKs to interact with R2 in your existing applications
CLI toolsYou want to upload, download, or manage objects from your terminal
DashboardYou want to quickly view and manage buckets and objects in the browser

Next steps

Workers API

Use R2 from Cloudflare Workers.

S3

Use R2 with S3-compatible SDKs.

CLI

Use R2 from the command line.