pip install awscli★Install AWS CLI v1 via pip (Python package manager).brew install awscli★Install on macOS via Homebrew — keeps updates easy.aws --versionConfirm the installed version.aws configure★Interactive wizard: sets Access Key, Secret, Region, and output format in~/.aws/credentials&~/.aws/config.aws configure --profile prod★Create a named profile — useful for multiple accounts or roles.aws configure listShow current active credentials & config source.aws configure list-profilesList all locally configured profiles.
Credentials precedence: env vars → CLI flags → ~/.aws/credentials → IAM instance role. An instance role is the recommended production approach — no local keys needed.