aws login supports --redirect-port
Introduced 2026-09-24 · score 0.93
HOW TO USE IT
When fixing the Authorization Code callback port, run `aws login --redirect-port <port>` to use that localhost port for the callback server.
aws login --redirect-port <port>WHY THIS HELPS
When fixing the callback port for an Authorization Code login, select a fixed port for the callback server.
REQUIREMENTS AND LIMITATIONS
- Version: 2.37.2
- --redirect-port <value>: Integer localhost port for the Authorization Code callback server. If omitted, a random available port is selected; the option is ignored when the login flow does not use a callback server.
- Prerequisite: The release note introduces this option in AWS CLI 2.37.2.
FIRST-PARTY EVIDENCE
- https://github.com/aws/aws-cli/blob/2.37.2/CHANGELOG.rst
- https://docs.aws.amazon.com/cli/latest/reference/login/
Check the installed version and the source before using it. Entry JSON