Skip to content

wrangler versions list returns more than 10 versions #14160

Description

@Lp-Francois

What versions & operating system are you using?

wrangler: 4.96.0

 System:
    OS: macOS 26.5
    CPU: (8) arm64 Apple M1 Pro
    Memory: 149.52 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 26.1.0
    npm: 11.13.0
    pnpm: 11.3.0
    bun: 1.3.14
    Deno: 2.0.5

Please provide a link to a minimal reproduction

not applicable

Describe the Bug

wrangler versions list is documented as returning the 10 most recent Worker versions, but it returns far more when a Worker has more than 10 deployable versions.

Repro:

  1. Use a Worker with more than 10 deployable versions.
  2. Run npx wrangler versions list.

Expected:
Only the 10 most recent versions are returned.

Actual:
More than 10 versions are returned.

Likely cause:
packages/wrangler/src/versions/list.ts calls fetchDeployableVersions(...), which requests:
/accounts/:account/workers/scripts/:worker/versions?deployable=true

The API spec says deployable=true ignores pagination (not sure why?), so Wrangler needs to enforce the 10-version limit client-side, or the docs/help text should stop promising 10 results.

Please provide any relevant error logs

No response

Metadata

Metadata

Labels

package:wranglerRelating to the `wrangler` package

Type

Fields

No fields configured for Bug.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions