{
  "author": "Community",
  "description": "Upload screenshots to a Cloudflare R2 bucket using the AWS CLI's S3-compatible endpoint. Bring your own custom domain for public links.",
  "icon": "tornado",
  "id": "community.cloudflare-r2",
  "name": "Cloudflare R2 Upload",
  "openURLTemplate": null,
  "settings": [
    {
      "defaultValue": null,
      "isSecret": false,
      "key": "accountId",
      "label": "Cloudflare Account ID",
      "type": "text"
    },
    {
      "defaultValue": null,
      "isSecret": false,
      "key": "bucket",
      "label": "R2 Bucket Name",
      "type": "text"
    },
    {
      "defaultValue": "auto",
      "isSecret": false,
      "key": "region",
      "label": "Region",
      "type": "text"
    },
    {
      "defaultValue": null,
      "isSecret": false,
      "key": "profile",
      "label": "AWS Profile (configured for R2)",
      "type": "text"
    }
  ],
  "shellCommand": "aws s3 cp \"{{file}}\" s3://{{setting:bucket}}/ --endpoint-url https://{{setting:accountId}}.r2.cloudflarestorage.com --region {{setting:region}} --profile {{setting:profile}}",
  "type": "shellCommand",
  "urlBodyType": null,
  "urlEndpoint": null,
  "urlHeaders": null,
  "urlMethod": null,
  "version": "1.0.0"
}