cloudflare-r2 - Cloudflare R2 Object Storage Operations and Integration
Provides patterns and commands for uploading, downloading, listing, deleting files, and generating presigned URLs in Cloudflare R2 object storage.
Tags
Updated: 2026-09-15Capabilities
What this skill does
- Upload files to R2 bucket
- Download files from R2 bucket
- List files with pagination
- Delete single or multiple files
- Check file existence using head
- Generate S3 presigned URLs
- Execute Wrangler R2 CLI commands
Inputs
- Cloudflare R2 bucket binding
- File paths and buffers
- Account ID and API credentials
- Wrangler CLI configuration
Outputs
- Stored R2 objects and metadata
- HTTP responses with file streams
- Generated presigned URLs
- Wrangler CLI execution results
Requirements
- Cloudflare Workers environment or Node.js
- Wrangler CLI
- @aws-sdk/client-s3 package
- @aws-sdk/s3-request-presigner package
