Packages

wrangler

4.164.0 · 17 Nov 2026MIT OR Apache-2.049.3M / weekRepositoryHomepagenpmAtom feed

Your version

4.62.0

3 Feb 2026Where it was published

4.167.0 is the newest release of 4.x.

In short

1 removed6 new3 fixed3 internal

  • Removed

    Remove the 'pubsub' sub-command and related functionality

Release note

Minor Changes

  • Add AI Search OAuth scopes to login

    Adds ai-search:write and ai-search:run OAuth scopes to the default login scopes, enabling wrangler to authenticate with AI Search APIs.

  • Add wrangler r2 bucket local-uploads command to manage local uploads for R2 buckets

    When enabled, object data is written to the nearest region first, then asynchronously replicated to the bucket's primary region.

    Docs: developers.cloudflare.com/r2/buckets/local-uplo…

    # Get local uploads status
    wrangler r2 bucket local-uploads get my-bucket
    
    # Enable local uploads (will prompt for confirmation)
    wrangler r2 bucket local-uploads enable my-bucket
    
    # Enable without confirmation prompt
    wrangler r2 bucket local-uploads enable my-bucket --force
    
    # Disable local uploads
    wrangler r2 bucket local-uploads disable my-bucket
  • Add a new subrequests limit to the limits field of the Wrangler configuration file

    Before only the cpu_ms limit was supported in the limits field of the Wrangler configuration file, now a subrequests limit can be specified as well which enables the user to limit the number of fetch requests that a Worker's invocation can make.

    Example:

    {
        "$schema": "./node_modules/wrangler/config-schema.json",
        "limits": {
            "cpu_ms": 1000,
            "subrequests": 150 // newly added field
        }
    }
  • Add timestamp field to the version metadata binding in local development. The version metadata binding now includes id, tag, and timestamp fields, making it easier to test version-aware logic locally.

Patch Changes

  • Update autoconfig logic to handle Next.js projects by using the new @opennextjs/cloudflare migrate command

  • Improve error message when d1 export --output points to a directory

  • Add versionCommand to the autoconfig_summary field in the autoconfig output entry

    Add the version upload command to the output being printed by wrangler deploy to WRANGLER_OUTPUT_FILE_DIRECTORY/WRANGLER_OUTPUT_FILE_PATH. This complements the existing buildCommand and deployCommand fields and allows CI systems to know how to upload new versions of Workers.

    For example, for a standard npm project this would be:

    • Version command: npx wrangler versions upload

    While for a Next.js project it would be:

    • Version command: npx @opennextjs/cloudflare upload

  • Fixed Wrangler's error handling for both invalid commands with and without the --help flag, ensuring consistent and clear error messages.

    Additionally, it also ensures that if you provide an invalid argument to a valid command, Wrangler will now correctly display that specific commands help menu.

  • Add framework id, build command, and deploy command to the autoconfig_summary field in the deploy output entry

    Add the framework id alongside the commands to build and deploy the project to the output being printed by wrangler deploy to WRANGLER_OUTPUT_FILE_DIRECTORY or WRANGLER_OUTPUT_FILE_PATH.

    For example for an npm Astro project these would be:

    • Framework id: astro

    • Build command: npm run build

    • Deploy command: npx wrangler deploy

    While for a Next.js project they would instead be:

    • Framework id: next

    • Build command: npx @opennextjs/cloudflare build

    • Deploy command: npx @opennextjs/cloudflare deploy

  • Removed

    Remove the 'pubsub' sub-command and related functionality

    The Pub/Sub product was never made publicly available and has been discontinued. This removes the wrangler pubsub command and all associated functionality.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.