>_cli-install
aws

Install AWS CLI

The official Amazon Web Services command-line interface

The AWS CLI (v2) manages every AWS service from your terminal — S3, EC2, Lambda, IAM and more — with a single unified tool.

Install on macOS
brew install awscli
Other install methods
Official .pkg
curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o AWSCLIV2.pkg && sudo installer -pkg AWSCLIV2.pkg -target /
Install on Windows
msiexec.exe /i https://awscli.amazonaws.com/AWSCLIV2.msi
Install on Linux
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o awscliv2.zip && unzip awscliv2.zip && sudo ./aws/install
Run it
aws configure
Verify the install
aws --version

Before you start

After installing, run aws configure to add your access key, secret, and default region.

Official documentation: AWS CLI install guide

Frequently asked questions

AWS CLI v1 or v2?

Install v2 — it is the current, actively supported major version and the one these commands install.

How do I add my credentials?

Run aws configure and paste your access key ID, secret access key, and default region.

Does Homebrew install v2?

Yes, brew install awscli installs AWS CLI v2 on macOS and Linux.

AWS and Amazon Web Services are trademarks of Amazon.com, Inc. cli-install.com is an independent resource and is not affiliated with or endorsed by the trademark owner.