Skip to content

[wrangler] Allow r2 bucket list with invalid config#11918

Merged
NuroDev merged 2 commits intocloudflare:mainfrom
ksawaneh:fix/wrangler-r2-bucket-list-no-config
Apr 15, 2026
Merged

[wrangler] Allow r2 bucket list with invalid config#11918
NuroDev merged 2 commits intocloudflare:mainfrom
ksawaneh:fix/wrangler-r2-bucket-list-no-config

Conversation

@ksawaneh
Copy link
Copy Markdown
Contributor

@ksawaneh ksawaneh commented Jan 14, 2026

Fixes #10682.

This makes wrangler r2 bucket list an account-level command that no longer reads/validates the local Wrangler config (wrangler.toml/wrangler.jsonc) before executing.

This unblocks listing buckets when the local config is invalid (e.g. invalid r2_buckets entries), which is especially useful when you need to inspect available buckets in order to fix the config.


  • 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: the change is self-contained and covered by tests.

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


Open with Devin

@ksawaneh ksawaneh requested a review from a team as a code owner January 14, 2026 14:24
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Jan 14, 2026

🦋 Changeset detected

Latest commit: ab12f31

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

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Jan 16, 2026

create-cloudflare

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

@cloudflare/kv-asset-handler

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

miniflare

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

@cloudflare/pages-shared

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

@cloudflare/unenv-preset

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

@cloudflare/vite-plugin

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

@cloudflare/vitest-pool-workers

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

@cloudflare/workers-editor-shared

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

wrangler

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

commit: ab12f31

Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 2 additional flags.

Open in Devin Review

@penalosa penalosa force-pushed the fix/wrangler-r2-bucket-list-no-config branch from a2f3b6c to 9c8114e Compare March 20, 2026 20:12
@workers-devprod
Copy link
Copy Markdown
Contributor

Codeowners approval required for this PR:

  • @cloudflare/wrangler
Show detailed file reviewers
  • packages/wrangler/src/tests/r2/bucket.test.ts: [@cloudflare/wrangler]
  • packages/wrangler/src/r2/bucket.ts: [@cloudflare/wrangler]

@petebacondarwin petebacondarwin force-pushed the fix/wrangler-r2-bucket-list-no-config branch from 9c8114e to 6681ca1 Compare April 15, 2026 06:45
@workers-devprod
Copy link
Copy Markdown
Contributor

workers-devprod commented Apr 15, 2026

Codeowners approval required for this PR:

  • ✅ @cloudflare/wrangler
Show detailed file reviewers

@petebacondarwin petebacondarwin requested review from a team and NuroDev and removed request for a team April 15, 2026 06:52
Copy link
Copy Markdown
Contributor

@workers-devprod workers-devprod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codeowners reviews satisfied

@github-project-automation github-project-automation bot moved this from Untriaged to Approved in workers-sdk Apr 15, 2026
@NuroDev NuroDev merged commit d0a9d1c into cloudflare:main Apr 15, 2026
57 of 59 checks passed
@github-project-automation github-project-automation bot moved this from Approved to Done in workers-sdk Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

unrelated wrangler commands depend on parsing wrangler.jsonc, fail if wrangler.jsonc is invalid

3 participants