Obtain an SSO session for a named profile.
Section: Configuration and Profiles
Log in with SSO
bash
bash
aws sso login --profile sandboxExplanation
Starts an authentication flow and caches short-lived credentials for the profile.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Configuration and Profiles
Configure IAM Identity Center (SSO)
Interactively create an SSO-backed profile.
Run interactive configure
Set credentials, region, and output format interactively.