How to install AWS CLI on Linux?

First published: Friday, September 15, 2023 | Last updated: Friday, September 15, 2023

Discover how to install the AWS CLI on your Linux operating system to operate and manage AWS cloud resources.


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.

Prerequisites for AWS CLI

To use the AWS CLI on a Linux operating system, you need to have Python and Pip installed. Both Python and Pip are essential components for running the AWS CLI and interacting with AWS services from the command line.

  1. How to install Python on Linux?
  2. How to install Pip on Linux?

Install AWS CLI

Installing the AWS CLI on your Linux operating system will allow you to effectively manage and operate various AWS resources directly from your native terminal app. Once installed, it’s important to verify the installation by checking the version of AWS CLI you have. For more detailed information, you can refer to the official AWS CLI documentation.

# Install AWS CLI.
$ sudo pip install awscli

# Check AWS CLI version.
$ aws --version