Skip to content

Conversation

@rahulsuresh-git
Copy link

@rahulsuresh-git rahulsuresh-git commented Jan 11, 2026

Adds the wrangler r2 bucket local-uploads command to manage local uploads configuration for R2 buckets.

Commands:

  • wrangler r2 bucket local-uploads get - Get current configuration
  • wrangler r2 bucket local-uploads enable - Enable local uploads
  • wrangler r2 bucket local-uploads disable - Disable local uploads

Flags:

  • -J, --jurisdiction flag to specify bucket jurisdiction
  • -y, --force flag to skip confirmation prompt

Uses the R2 API endpoints:

  • GET /accounts/{account_id}/r2/buckets/{bucket_name}/local-uploads
  • PUT /accounts/{account_id}/r2/buckets/{bucket_name}/local-uploads

Testing
17 unit tests covering help output, get/enable/disable flows, confirmation prompts, jurisdiction header, and error cases

  • Tests
    • Tests included/updated
    • Automated tests not possible - manual testing has been completed as follows:
    • Additional testing not necessary because:
  • Public documentation
    • Cloudflare docs PR(s):
    • Documentation not necessary because:

A picture of a cute animal (not mandatory, but encouraged)

@rahulsuresh-git rahulsuresh-git requested a review from a team as a code owner January 11, 2026 07:17
@changeset-bot
Copy link

changeset-bot bot commented Jan 11, 2026

🦋 Changeset detected

Latest commit: 47f2947

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@rahulsuresh-git rahulsuresh-git marked this pull request as draft January 11, 2026 07:18
@rahulsuresh-git rahulsuresh-git changed the title feat(workers-sdk): R2-3896 Add R2 local uploads to wrangler [wrangler] R2-3896 Add R2 local uploads to wrangler Jan 11, 2026
@rahulsuresh-git rahulsuresh-git changed the title [wrangler] R2-3896 Add R2 local uploads to wrangler [wrangler] R2-3896 Add R2 local uploads command Jan 11, 2026
@github-project-automation github-project-automation bot moved this to Untriaged in workers-sdk Jan 12, 2026
@pkg-pr-new
Copy link

pkg-pr-new bot commented Jan 12, 2026

create-cloudflare

npm i https://pkg.pr.new/create-cloudflare@11867

@cloudflare/kv-asset-handler

npm i https://pkg.pr.new/@cloudflare/kv-asset-handler@11867

miniflare

npm i https://pkg.pr.new/miniflare@11867

@cloudflare/pages-shared

npm i https://pkg.pr.new/@cloudflare/pages-shared@11867

@cloudflare/unenv-preset

npm i https://pkg.pr.new/@cloudflare/unenv-preset@11867

@cloudflare/vite-plugin

npm i https://pkg.pr.new/@cloudflare/vite-plugin@11867

@cloudflare/vitest-pool-workers

npm i https://pkg.pr.new/@cloudflare/vitest-pool-workers@11867

@cloudflare/workers-editor-shared

npm i https://pkg.pr.new/@cloudflare/workers-editor-shared@11867

@cloudflare/workers-utils

npm i https://pkg.pr.new/@cloudflare/workers-utils@11867

wrangler

npm i https://pkg.pr.new/wrangler@11867

commit: 47f2947

@rahulsuresh-git
Copy link
Author

TODO: Remove jurisdiction changes since it is not supported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Untriaged

Development

Successfully merging this pull request may close these issues.

2 participants