Install AWS CLI on macOS
This article is for those looking for a detailed and clear guide on how to install AWS CLI on macOS.
The AWS CLI is a single tool for managing AWS services. With just one tool download, you can control many AWS services from the command line and automate them with scripts.
You can read more about AWS CLI on the official Amazon website.
This guide describes how to connect to a server using the iTerm2 terminal emulator installed on the macOS operating system.
The AWS CLI requires Python 2 version 2.6.5 or later or Python 3 version 3.3 or later to work properly.
Let’s check the version of Python installed on your computer using the command:
python --version
Let’s go to the “Downloads” folder using the command:
cd Downloads
Download the AWS CLI installer using the command:
curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"
Unpack the downloaded archive using the command:
unzip awscli-bundle.zip
Let’s start the AWS CLI installation using the command:
sudo ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws
This command installs the AWS CLI in “/usr/local/aws” and creates a symbolic link in the “/usr/local/bin” directory.
Specify the password for the account and press “Enter”.
You can now view the installed version of AWS CLI using the command:
/usr/local/bin/aws --version
Everything is ready to use the AWS CLI.