How to install AWS CLI on Debian 11 or 12 Linux

To manage AWS servers, Amazon cloud offers a command-line interface tool called AWS CLI. It is an open-source program that helps users to manage and automate various Amazon cloud servers directly from their system’s command-line shell. Here we learn the steps to install the AWS CLI tool on Debian 11 Bullseye or 10 Buster using the terminal.

It is a cross-platform tool, hence apart from Linux, it is also available for Windows and macOS, along with direct access to public APIs for AWS.

Till now, it has two versions one is AWS CLI 2.x, the current version meant to use in production; whereas Version 1.x is the earlier version available for backward compatibility.

AWS CLI installation on Debian 12 or 11 Linux

1. Open a command terminal

If you are using the Debian server with CLI, you are already there, whereas the GUI desktop users can go to all Applications to run the Terminal app.


2. Download AWS CLI installation script

Here we are downloading the script to install AWS CLI Version 2 on Linux. If you want the previous version then visit Github and download it.

wget -O

Extract the downloaded zipped file


Download AWS CLI installation script

Users want to install Version 1.x

wget -O
sudo ./awscli1/install -i /usr/local/aws -b /usr/local/bin/aws


3. Install AWS CLI version 2 on Debian 11 or 10

Now, switch to the extracted directory and run the AWS CLI installation script using the command given below under sudo rights.

cd aws
sudo ./install


4. Check the version

We already have completed the installation of the AWS CLI tool on Debian 11 or 10 successfully now let’s check the version.

aws --version

Check version AWS CLI tool version on Debian 11 Linux


5.  To get help to know the available commands & options

Run the help command, whereas to know more about its command structure refer to the official documentation.

aws help


This was the quick way to get this Amazon Web service command-line management tool on your local system to easily control your cloud server services.


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.