Skip to content

Conversation

@dario-piotrowicz
Copy link
Member

Fixes https://jira.cfdata.org/browse/DEVX-2315

This PR adds a --dry-run option to wrangler setup so that users can run wrangler setup --dry-run knowing that no local changes will actually be applied.

It also adds a dryRun option to the runAutoConfig function that can be used to programmatically run the autoconfig flow in dry-run mode.


  • Tests
    • Tests included
    • Tests not necessary because:
  • Public documentation
    • Cloudflare docs PR(s):
    • Documentation not necessary because: documentation will be worked on separately
  • Wrangler V3 Backport
    • Wrangler PR:
    • Not necessary because: wrangler setup and autoconfig are not in v3

@changeset-bot
Copy link

changeset-bot bot commented Nov 13, 2025

🦋 Changeset detected

Latest commit: e6507ae

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

pkg-pr-new bot commented Nov 13, 2025

create-cloudflare

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

@cloudflare/kv-asset-handler

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

miniflare

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

@cloudflare/pages-shared

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

@cloudflare/unenv-preset

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

@cloudflare/vite-plugin

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

@cloudflare/vitest-pool-workers

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

@cloudflare/workers-editor-shared

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

@cloudflare/workers-utils

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

wrangler

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

commit: e6507ae

@dario-piotrowicz dario-piotrowicz force-pushed the dario/DEVX-2315/wrangler-setup-dry-run branch from 762dd4c to f793929 Compare November 13, 2025 10:51
@dario-piotrowicz dario-piotrowicz mentioned this pull request Nov 13, 2025
6 tasks
@dario-piotrowicz dario-piotrowicz marked this pull request as ready for review November 13, 2025 11:06
@dario-piotrowicz dario-piotrowicz requested a review from a team as a code owner November 13, 2025 11:06
Copy link
Contributor

@penalosa penalosa left a comment

Choose a reason for hiding this comment

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

Apologies, this is going to have horrific merge conflicts with #11251

@dario-piotrowicz
Copy link
Member Author

Apologies, this is going to have horrific merge conflicts with #11251

yeah... 😅 🥲

dario-piotrowicz and others added 3 commits November 13, 2025 15:42
@dario-piotrowicz dario-piotrowicz force-pushed the dario/DEVX-2315/wrangler-setup-dry-run branch from 577a956 to 5b5a228 Compare November 13, 2025 15:49
@dario-piotrowicz dario-piotrowicz force-pushed the dario/DEVX-2315/wrangler-setup-dry-run branch from 135aa5a to 4133078 Compare November 13, 2025 23:07
@dario-piotrowicz dario-piotrowicz force-pushed the dario/DEVX-2315/wrangler-setup-dry-run branch from 4133078 to 40e06c0 Compare November 13, 2025 23:41
@github-project-automation github-project-automation bot moved this from Untriaged to Approved in workers-sdk Nov 14, 2025
@dario-piotrowicz dario-piotrowicz merged commit 2011b6a into main Nov 14, 2025
42 of 44 checks passed
@dario-piotrowicz dario-piotrowicz deleted the dario/DEVX-2315/wrangler-setup-dry-run branch November 14, 2025 14:50
@github-project-automation github-project-automation bot moved this from Approved to Done in workers-sdk Nov 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants