cloudflare-r2

Manage Cloudflare R2 buckets, objects, and signed URLs via wrangler CLI and Workers.

46|4|Updated Jan 27, 2026
One-click install
npx skills add https://github.com/BagelHole/DevOps-Security-Agent-Skills --skill cloudflare-r2-bagelhole
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cloudflare-r2
Source: https://github.com/BagelHole/DevOps-Security-Agent-Skills/tree/main/infrastructure/cloudflare/cloudflare-r2
Command: npx skills add https://github.com/BagelHole/DevOps-Security-Agent-Skills --skill cloudflare-r2-bagelhole

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a cost-effective and performant solution for object storage needs, specifically addressing the high egress fees associated with traditional cloud providers by leveraging Cloudflare's R2 service.

Core Features & Use Cases

  • S3-Compatible API: Seamlessly integrate with existing S3 tooling and workflows.
  • Bucket Management: Create, list, and manage R2 buckets.
  • Object Operations: Upload, download, and manage objects within buckets.
  • Signed URLs: Generate secure, time-limited URLs for private content access.
  • Use Case: Store and serve large media files for a web application, ensuring fast delivery globally without incurring significant data transfer costs.

Quick Start

Use the cloudflare-r2 skill to upload the local file './my-data.zip' to the 'my-bucket' bucket as 'data/my-data.zip'.

Frequently Asked Questions about cloudflare-r2

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage Cloudflare R2 buckets and objects without egress fees?

Cloudflare R2 provides S3-compatible object storage with zero egress fees, allowing you to create buckets, upload objects, and manage media delivery cost-effectively. It integrates seamlessly with existing S3 tooling and workflows.

Can I generate signed URLs for private content stored in R2 buckets?

Yes, you can generate secure, time-limited signed URLs for private content access in R2 buckets. This requires using Cloudflare Workers to facilitate the signed URL generation process for your stored objects.

Do I need wrangler CLI to upload files to Cloudflare R2?

Yes, the wrangler CLI is required for executing bucket and object operations in Cloudflare R2. You can use it to upload local files, like a zip archive, directly to your specified R2 bucket paths.

What is the best way to serve large media files globally without high data transfer costs?

Serving large media files through Cloudflare R2 leverages its S3-compatible API and CDN integration to ensure fast global delivery. This approach eliminates the significant data transfer egress costs charged by traditional cloud providers.

Does Cloudflare R2 work with existing S3 tooling and workflows?

Cloudflare R2 features an S3-compatible API designed to seamlessly integrate with your existing S3 tooling and workflows. This compatibility allows for straightforward data archiving and media delivery management without changing your current setup.

When should I not use Cloudflare R2 for object storage?

You should avoid using Cloudflare R2 if your workflow cannot utilize the wrangler CLI for object operations or Cloudflare Workers for signed URL generation, as these dependencies are required for managing buckets and secure access.