Change8

wrangler@4.74.0

📦 cloudflare-workersView on GitHub →
3 features🐛 3 fixes🔧 5 symbols

Summary

This release introduces the ability to deploy secrets alongside Worker code via `--secrets-file` and adds a new command to list container instances. Bug fixes address issues with monorepo autoconfiguration and asset upload error handling.

Migration Steps

  1. When using `wrangler deploy` or `wrangler versions upload`, you can now optionally provide a secrets file using `--secrets-file .env.production` or `--secrets-file secrets.json`.

✨ New Features

  • Added support for the `--secrets-file` parameter to `wrangler deploy` and `wrangler versions upload` to upload secrets alongside Worker code using JSON or .env formats.
  • Introduced the `wrangler containers instances <application_id>` command to list container instances for an application, displaying ID, state, location, version, and creation time.
  • Added support for pagination to the containers-shared API client.

🐛 Bug Fixes

  • Fixed an issue where autoconfig package installation failed at workspace roots by including appropriate workspace root flags (`--workspace-root` for pnpm, `-W` for yarn) in package installation commands.
  • Resolved an issue where autoconfig could not run at the workspace root if the root directory was explicitly listed in workspace configurations.
  • Fixed an unclear error message when the assets upload session returned a `null` response from the Cloudflare API during deployment; Wrangler now provides a clear message asking users to retry.

Affected Symbols