This guide will explain how to install Amazon Web Services Command Line Interface (AWS-CLI) on macOS.
Check your Python installation to ensure it’s either version 2.6.5+ or version 3.3+:
If your version of Python does not meet these standards, please read our Guide to Upgrading Python on macOS.
Download, unzip, and run the AWS-CLI installation package:
sudo curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip" sudo unzip awscli-bundle.zip sudo ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws
To ensure that the package is installed correctly, run:
If you get an answer that looks like this, AWS-CLI is correctly installed:
aws-cli/1.16.72 Python/2.7.10 Darwin/18.2.0 botocore/1.12.62
To learn how to configure AWS-CLI, read our How-To.