This article is written for those who were searching for a detailed and simple for the understanding guide on how to install AWS CLI on macOS.
The AWS Command Line Interface (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.
You can read more about the AWS CLI on the official Amazon website at https://aws.amazon.com/cli/.
In this guide, installing AWS CLI using the iTerm2 terminal emulator installed on the macOS operating system.
For AWS CLI to work correctly, Python 2, version 2.6.5 and higher, or Python 3, version 3.3 and higher, is required.
Check the version of Python installed on your computer using the command:
Go to the “Downloads” folder with the command:
Download the AWS CLI installer using the command:
curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"
Unzip the downloaded archive using the command:
Run the AWS CLI installation using the command:
sudo ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws
This command sets the AWS command-line interface to “/usr/local/aws” and creates a symbolic link in the /usr/local/bin directory.
Specify the password for the account and press “Enter”.
Now you can see the installed version of AWS CLI using the command:
Everything is ready to use AWS CLI.