कंटेंट पर जाएँ
TakoAPI
स्किल्स पर वापस

cloudflare-r2

xiaoyaner0201 द्वारा

Coding Agents & IDEs
1.4kclawskills.sh द्वारा बताए गए डाउनलोड
3स्टार
0व्यूज़
0 लाइकइस स्किल को लाइक करने के लिए साइन इन करें
—अभी तक कोई रेटिंग नहीं
आपकी रेटिंग

संक्षिप्त

Upload files to Cloudflare R2 storage using wrangler CLI.

विवरण

यह स्किल क्या करती है

Uploads files to Cloudflare R2 object storage using the wrangler CLI. Supports single-file and batch uploads via a shell script or direct wrangler commands. Uploaded files are served from a public R2 CDN domain.

Cloudflare R2 charges no egress fees, making it cheaper than S3 for files served frequently over the public internet.

इसे कब इस्तेमाल करें

  • Uploading article images to a CDN before publishing
  • Batch-deploying static assets for a web project
  • Hosting video files without incurring egress fees
  • Replacing local file references with public R2 URLs
  • Managing bucket contents by listing or deleting remote objects

उदाहरण वर्कफ़्लो

इनपुट

User asks: Upload screenshot.png to R2 under the docs/ folder

एजेंट
  1. 1

    Read bucket name, accountId, and apiToken from ~/.config/cloudflare/r2.json

  2. 2

    Set CLOUDFLARE_ACCOUNT_ID and CLOUDFLARE_API_TOKEN environment variables

  3. 3

    Run: wrangler r2 object put "<bucket>/docs/screenshot.png" --file screenshot.png --remote

  4. 4

    Construct public URL using publicDomain from config

आउटपुट

https://pub-xxx.r2.dev/docs/screenshot.png

आवश्यकताएँ

  • Cloudflare account
  • Cloudflare R2 API token
  • R2 bucket created in Cloudflare dashboard
  • ~/.config/cloudflare/r2.json config file with bucket, accountId, publicDomain, and apiToken

इंस्टॉलेशन

clawhub install xiaoyaner0201/cloudflare-r2

CLI कमांड चलाएँ, या प्रॉम्प्ट को Claude Code, Cursor, Codex या जो भी कोडिंग एजेंट आप इस्तेमाल करते हैं उसमें पेस्ट करें।

लिंक