The AWS Command Line Interface (AWS CLI) is a unified tool to manage your AWS services. With just one tool to download and configure, you can control multiple AWS services from the command line and automate them through scripts.
Here’s a complete guide for installing the AWS Command Line Interface (CLI) on major platforms:
For Windows
- Download the installer:
Run the downloaded
.msi
file and follow the setup wizard.Verify installation:
aws --version
You should see something like:
aws-cli/2.x.x Python/X.x.x Windows/x86_64
For macOS
Using the official installer:
- Download the installer:
curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg"
- Install it:
sudo installer -pkg AWSCLIV2.pkg -target /
- Verify installation:
aws --version
Or, using Homebrew (if installed):
brew install awscli
For Linux
- Download and unzip the installer:
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
- Install it:
sudo ./aws/install
- Verify:
aws --version
Post-install: Configure AWS CLI
After installation, configure with your AWS credentials:
aws configure
You’ll be prompted for:
- AWS Access Key ID
- AWS Secret Access Key
-
Default region name (e.g.,
us-east-1
) -
Default output format (e.g.,
json
,table
,text
)
Resources
- Official AWS CLI docs: https://docs.aws.amazon.com/cli/latest/userguide/
- AWS CLI GitHub: https://github.com/aws/aws-cli
Top comments (0)
Some comments may only be visible to logged-in visitors. Sign in to view all comments.