Get started
Cloudflare R2 Storage allows developers to store large amounts of unstructured data without the costly egress bandwidth fees associated with typical cloud storage services.
- Install Wrangler within your project using npm and Node.js or Yarn.
- Authenticate Wrangler to enable deployments to Cloudflare. When Wrangler automatically opens your browser to display Cloudflare’s consent screen, select Allow to send the API Token to Wrangler.
To create a new R2 bucket from the Cloudflare dashboard:
- Log in to the Cloudflare dashboard ↗ and select R2.
- Select Create bucket.
- Enter a name for the bucket and select Create bucket.
- From the R2 page in the dashboard, locate and select your bucket.
- Select Upload.
- Choose to either drag and drop your file into the upload area or select from computer.
You will receive a confirmation message after a successful upload.
Cloudflare provides multiple ways for developers to access their R2 buckets:
- Cloudflare CLI tutor - Learn the basics of using Workers with R2 and CLI development in a guided learning experience.