What problem does it solve?
Managing cloud object storage can be a complex, manual process involving intricate CLI commands, public access configurations, and CORS settings. This Skill automates and simplifies all Cloudflare R2 operations, making file hosting straightforward and freeing you from tedious infrastructure management.
Core Features & Use Cases
- Effortless File Management: Easily upload, download, and delete files from your R2 buckets with simple commands.
- Automated Public Access: Quickly enable public URLs (
r2.dev subdomains) and configure custom domains for your assets.
- CORS Configuration: Set up Cross-Origin Resource Sharing rules to ensure seamless browser access to your R2 objects.
- Use Case: Deploy static website assets, host AI reference images, or manage game resources with a few commands, knowing your files are globally distributed with zero egress fees.
Quick Start
Install Wrangler CLI and authenticate
npm install -g wrangler
wrangler login
Create a new R2 bucket
wrangler r2 bucket create my-new-bucket
Upload a file to your bucket
wrangler r2 object put my-new-bucket/my-image.png --file=./local-image.png --remote