aws sso login --profile
aws sso login --profile <name>
Risk: Safe
What it does
Signs in through IAM Identity Center and keeps short-lived badges for the CLI.
When to use it
Each day you use the CLI with an Identity Center profile.
Example
$ aws sso login --profile my-dev-profileSign in at the front desk with these settings.
$ aws configure ssoSet up a new Identity Center profile, step by step.
$ aws sso logoutSign out and clear the cached badges.
Learn it in: The AWS CLI and profiles · Official docs