π Step 1: Navigate to the AWS CLI Installation Guide
Open your browser and search for:
install AWS CLI version 2 macOSThen select the official documentation from:
Make sure you choose the guide for AWS CLI Version 2 on macOS.
π₯ Step 2: Download the Installer
Scroll down to the installation section.
You will see an option to download a .pkg installer file.
π This is a graphical installer, which makes installation simple.
Download the
.pkgfileOpen it once downloaded
π±οΈ Step 3: Run the Installer
Once the installer opens:
Click Continue
Click Continue again through the prompts
Agree to the license agreement
Choose Install for all users (recommended)
Click Install
The installer will now:
π¦ Copy required files
βοΈ Configure the AWS CLI
Once complete, youβll see a successful installation message.
You can then move the installer to trash.
π» Step 4: Open Terminal
Now open your terminal.
You can:
Search for Terminal on macOS
Or use alternatives like iTerm2
β Step 5: Verify Installation
Run the following command:
aws --versionβ Expected Output
You should see something like:
aws-cli/2.x.x Python/3.x ...π If you see a version number, that means the AWS CLI is installed correctly.
π οΈ Troubleshooting
If something doesnβt work:
Revisit the official AWS documentation
Ensure the installation completed successfully
Restart your terminal and try again