Skip to content

Options not working on wrangler login #9065

@frankichiro

Description

@frankichiro

Which Cloudflare product(s) does this pertain to?

Wrangler

What versions & operating system are you using?

wrangler 4.13.2, node v23.11.0, mac 14.6.1

Please provide a link to a minimal reproduction

No response

Describe the Bug

When trying to log in with host and port options, the verification page opens with an incorrect link.

Command:
npx wrangler login --callback-host 127.0.0.1 --callback-port 3000

Result:
Temporary login server listening on 127.0.0.1:3000 <- correct
Opening a link in your default browser: (opens @ http://localhost:8976/) <- incorrect

Opening a link in your default browser: (opens @ http://127.0.0.1:3000/) <- expected

The browser opens an incorrect link. If I edit the link with the correct host and port, the link works and the login resolves.

Conclusion:
--callback-host and --callback-port are correctly applied for the listening server but not for the browser link.

Please provide any relevant error logs

No response

Metadata

Metadata

Labels

bugSomething that isn't workingcaretakingPriority for caretakingquick winPotentially easy/straightforward issue to tackleregressionBreak in existing functionality as a result of a recent change

Type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions