What is AWS CLI?
The AWS CLI, short for Amazon Web Services Command Line Interface, is a powerful unified tool that provides a command-line interface for interacting with AWS resources and services. With just one tool to download and configure, you can control multiple AWS services from the command line and automate them through scripts.
Install AWS CLI
This knowledge base article provides detailed, step-by-step instructions for installing the AWS CLI on your Windows, Mac, or Linux operating system. The AWS CLI command-line tool allows you to manage and operate various AWS resources directly from your terminal. Once the installation is complete, it’s essential to verify the AWS CLI version to ensure that the installation was successful. For more detailed information, you can refer to the official AWS CLI documentation.
Windows
- Download the AWS CLI installer.
- Execute the AWS CLI installer, and proceed with Next and Finish prompts to install AWS CLI.
After installing AWS CLI on your Windows operating system, you’ll want to verify the installation by using the following commands.
# Check AWS CLI version.
$ aws --version
Mac
- Download the AWS CLI package.
- Execute the AWS CLI package, and proceed with Continue and Install prompts to install AWS CLI.
After installing AWS CLI on your Mac operating system, you’ll want to verify the installation by using the following commands.
# Check AWS CLI version.
$ aws --version
Linux
You can use the following commands to install AWS CLI in any Linux-based operating system.
AMD64 / X86-64 / X64
# Download AWS CLI.
$ wget https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip -P /tmp
# Extract AWS CLI from archive.
$ unzip /tmp/awscli-exe-linux-x86_64.zip -d /tmp
# Install AWS CLI.
$ sudo /tmp/aws/install
# Check AWS CLI version.
$ aws --version
ARM64
# Download AWS CLI.
$ wget https://awscli.amazonaws.com/awscli-exe-linux-aarch64.zip -P /tmp
# Extract AWS CLI from archive.
$ unzip /tmp/awscli-exe-linux-aarch64.zip -d /tmp
# Install AWS CLI.
$ sudo /tmp/aws/install
# Check AWS CLI version.
$ aws --version