The new secrets configuration property lets you declare the secret names your Worker requires in your Wrangler configuration file. Required secrets are validated during local development and deploy, and used as the source of truth for type generation. wrangler.jsonc { " secrets " : { " required " : [ "APIKEY" , "DBP...
Workers - Declare required secrets in your Wrangler configuration
Cloudflare Developer Platform Changelog · 2026-03-25
Related items
Workers - Retrieve your authentication token with `wrangler auth token`
Wrangler now includes a new wrangler auth token command that retrieves your current authentication token or credentials for use with other tools and scripts. wrangler auth token The command returns whichever authentication method is currently configured, in priority order: API token from CLOUDFLAREAPITOKEN , or OAut...
Workers - No config? No problem. Just `wrangler deploy`
You can now deploy any existing project to Cloudflare Workers — even without a Wrangler configuration file — and wrangler deploy will just work . Starting with Wrangler 4.68.0 , running wrangler deploy automatically configures your project by detecting your framework, installing required adapters, and deploying it t...
Workers - Wrangler config is optional when using Vite plugin
When using the Cloudflare Vite plugin to build and deploy Workers, a Wrangler configuration file is now optional for assets-only (static) sites. If no wrangler.toml , wrangler.json , or wrangler.jsonc file is found, the plugin generates sensible defaults for an assets-only site. The name is based on the package.json...
Workers - Configure your framework for Cloudflare automatically
Wrangler now supports automatic configuration for popular web frameworks in experimental mode, making it even easier to deploy to Cloudflare Workers. Previously, if you wanted to deploy an application using a popular web framework like Next.js or Astro, you had to follow tutorials to set up your application for depl...
Workers - Capture Wrangler command output in structured format
You can now capture Wrangler command output in a structured ND-JSON format by setting the WRANGLEROUTPUTFILEPATH or WRANGLEROUTPUTFILEDIRECTORY environment variables. This feature is particularly useful for CI/CD pipelines and automation tools that need programmatic access to deployment information such as worker na...
Workers - Deploy static sites to Workers without a configuration file
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 a...