npx wrangler r2 bucket create my-assets

Category: Cloudflare

npx wrangler r2 bucket create my-assets

Create a new R2 bucket

R2 is Cloudflare's S3-compatible object storage, and a bucket is its container for files. Creating my-assets gives you a place to store images, uploads, or backups with no egress fees. The command prints a binding hint for wrangler.toml, or pass --binding to have it added automatically.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.