Deploying static site to Workers is now easier. When you run wrangler deploy [directory] or wrangler deploy --assets [directory] without an existing configuration file, Wrangler CLI now guides you through the deployment process with interactive prompts.
Before and after
Before: Required remembering multiple flags and parameters
wrangler deploy --assets ./dist --compatibility-date 2025-09-09 --name my-projectAfter: Simple directory deployment with guided setup
wrangler deploy dist# Interactive prompts handle the rest as shown in the example flow aboveWhat’s new
Interactive prompts for missing configuration:
- Wrangler detects when you’re trying to deploy a directory of static assets
- Prompts you to confirm the deployment type
- Asks for a project name (with smart defaults)
- Automatically sets the compatibility date to today
Automatic configuration generation:
- Creates a
wrangler.jsoncfile with your deployment settings - Stores your choices for future deployments
- Eliminates the need to remember complex command-line flags
Example workflow
# Deploy your built static sitewrangler deploy dist
# Wrangler will prompt:✔ It looks like you are trying to deploy a directory of static assets only. Is this correct? … yes✔ What do you want to name your project? … my-astro-site
# Automatically generates a wrangler.jsonc file and adds it to your project:{ "name": "my-astro-site", "compatibility_date": "2025-09-09", "assets": { "directory": "dist" }}
# Next time you run wrangler deploy, this will use the configuration in your newly generated wrangler.jsonc filewrangler deployRequirements
- You must use Wrangler version 4.24.4 or later in order to use this feature
Source: Cloudflare
Latest Posts
- (Updated) Upcoming change: disabling Teams meeting recording expiration notification emails [MC1245635]
![(Updated) Upcoming change: disabling Teams meeting recording expiration notification emails [MC1245635] 2 pexels alfonso escalante 1319242 2533092](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==)
- Endpoint Data Loss Prevention: Always-on diagnostics for Windows endpoints (Phase 2) [MC1246003]
![Endpoint Data Loss Prevention: Always-on diagnostics for Windows endpoints (Phase 2) [MC1246003] 3 pexels icesky08 1294229](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==)
- Always-on diagnostics for Endpoint DLP – Turned on by default [MC1246001]
![Always-on diagnostics for Endpoint DLP – Turned on by default [MC1246001] 4 pexels designecologist 2526105](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==)
- Microsoft Outlook: Copilot Chat available in shared and delegate mailboxes [MC1246031]
![Microsoft Outlook: Copilot Chat available in shared and delegate mailboxes [MC1246031] 5 pexels diego madrigal 162471 539694](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==)

![(Updated) Upcoming change: disabling Teams meeting recording expiration notification emails [MC1245635] 2 pexels alfonso escalante 1319242 2533092](https://mwpro.co.uk/wp-content/uploads/2025/06/pexels-alfonso-escalante-1319242-2533092-150x150.webp)
![Endpoint Data Loss Prevention: Always-on diagnostics for Windows endpoints (Phase 2) [MC1246003] 3 pexels icesky08 1294229](https://mwpro.co.uk/wp-content/uploads/2025/06/pexels-icesky08-1294229-150x150.webp)
![Always-on diagnostics for Endpoint DLP – Turned on by default [MC1246001] 4 pexels designecologist 2526105](https://mwpro.co.uk/wp-content/uploads/2024/08/pexels-designecologist-2526105-150x150.webp)
![Microsoft Outlook: Copilot Chat available in shared and delegate mailboxes [MC1246031] 5 pexels diego madrigal 162471 539694](https://mwpro.co.uk/wp-content/uploads/2025/06/pexels-diego-madrigal-162471-539694-150x150.webp)
![Dynamics 365 Customer Insights - Journeys - Simplify forms by filtering choices based on previous answers [MC1138227] 7 Dynamics 365 Customer Insights – Journeys – Simplify forms by filtering choices based on previous answers [MC1138227]](https://mwpro.co.uk/wp-content/uploads/2025/06/pexels-polina-kovaleva-7172178-96x96.webp)