Scarlett Ideas Back to catalog
How to Install AWS CLI on Linux Step-by-Step
Aug 28, 2026 Scarlett

Install AWS CLI: A Step-by-Step Guide

Streamlining cloud interactions is a breeze with the Amazon Web Services (AWS) Command Line Interface (CLI). Here, we'll guide you through the installation and ...

Streamlining cloud interactions is a breeze with the Amazon Web Services (AWS) Command Line Interface (CLI). Here, we'll guide you through the installation and configuration of AWS CLI, ensuring you're ready to harness its powerful functionality in no time.

How to Install AWS CLI on Linux Step-by-Step

The AWS Command Line Interface (CLI) simplifies managing AWS services by providing commands for a twenty-four-carat user experience. Before diving in, ensure you have an AWS account and access to a terminal.

🔥 HOW TO INSTALL AWS CLI IN WINDOWS 10 | 🔥 AWS CLI IN LINUX

Installation

First, we'll walk you through the installation process across different platforms.

How to Install AWS CLI on Amazon Linux 2 | Configure IAM user on AWS CLI on Amazon Linux 2 | AWS

The AWS CLI installer is available on Linux, macOS, and Windows. You can install it directly via pip, AWS CLI's package manager, as follows. Make sure you have Python 2.6.5+ or Python 3.3+ installed prior to installation.

Linux/macOS

How to use AWS CLI in Windows - Beginners guide

In your terminal, run the following command:

pip install awscli --upgrade --user

To run AWS CLI without specifying the path, add the following line at the end of your ~/.bash_profile or ~/.zshrc file:

export PATH=~/.local/bin:$PATH

Run `source ~/.bash_profile` or `source ~/.zshrc` to apply changes.

How To Connect And Install AWS CLI On Mac And Windows?

macOS Homebrew

If you're using Homebrew on macOS, you can install AWS CLI by running:

brew install awscli

Windows

How to Fix the ‘aws’ is not recognized as an internal or external command Error

For Windows users, you can install AWS CLI using pip. Open the Command Prompt and enter:

pip install awscli --upgrade --user

If you're using PowerShell, use `pip install awscli --upgrade --user | Out-Null` instead.

How to setup AWS CLI from scratch in 5 minutes
What is AWS CLI? Learn How to Install and configure
#15:How to Install AWS CLI on Ubuntu 20.04 LTS | Configure AWS CLI on Ubuntu | AWS Tutorial
How to Use AWS CLI on Windows PC
Installing & Configuring the AWS Amplify CLI
How to install and setup AWS CLI on windows. With Live Example in Telugu.
How to setup AWS CLI from scratch in 5 minutes
Master AWS CLI | The Tool Every Cloud Engineer Needs
AWS S3 cli commands

Configuration

Once installed, you'll need to configure AWS CLI to manage your AWS services. Follow these steps:

Type `aws configure` in your terminal and provide the following information when prompted:

  • AWS Access Key ID: Your access key ID.
  • AWS Secret Access Key: Your secret access key.
  • Default region name: The AWS Region you're working in.
  • Default output format: The default output format to use.

You can create these keys via the IAM management console.

Test Configuration

Verify your configuration by running any AWS command, such as listing your S3 buckets with `aws s3 ls`. You should see a list of your S3 buckets in the CLI output.

Remember to store your access keys securely! Keeping them in plaintext or sharing them publicly is an invitation to danger.

Updating and Uninstalling AWS CLI

To update AWS CLI, run `pip install awscli --upgrade`. If you'd like to uninstall it, use `pip uninstall awscli`.

AWS CLI empowers you to manage your AWS resources with ease. With its installation and configuration taken care of, you're now ready to dive into the wealth of commands AWS CLI offers. Stay tuned for deeper dives into specific AWS CLI commands and functionalities!

More shots

How to Install AWS CLI on Linux Step-by-Step
How to Install AWS CLI on Linux Step-by-Step
🔥 HOW TO INSTALL AWS CLI IN WINDOWS 10 | 🔥 AWS CLI IN LINUX
🔥 HOW TO INSTALL AWS CLI IN WINDOWS 10 | 🔥 AWS CLI IN LINUX
How to Install AWS CLI on Amazon Linux 2 | Configure IAM user on AWS CLI on Amazon Linux 2 | AWS
How to Install AWS CLI on Amazon Linux 2 | Configure IAM user on AWS CLI on Amazon Linux 2 | AWS
How to use AWS CLI in Windows - Beginners guide
How to use AWS CLI in Windows - Beginners guide
How To Connect And Install AWS CLI On Mac And Windows?
How To Connect And Install AWS CLI On Mac And Windows?
How to Fix the ‘aws’ is not recognized as an internal or external command Error
How to Fix the ‘aws’ is not recognized as an internal or external command Error
How to setup AWS CLI from scratch in 5 minutes
How to setup AWS CLI from scratch in 5 minutes
What is AWS CLI? Learn How to Install and configure
What is AWS CLI? Learn How to Install and configure

Related topics