A
Arun's Blog
← Back to all posts

Master the AWS CLI Installation Process

CLI

Unleash the power of automation with the AWS CLI! Say goodbye to manual tasks and hello to seamless access to AWS services. Whether you're a Windows or Linux user, the installation process is a breeze, so you can start taking advantage of the CLI's programmatic capabilities in no time. The two operating systems I always use, as well as my installation preference, are listed below.

Prerequisites

  • Access to the internet
  • Ability to unzip/extract downloaded package
  • 64-bit operating system

Linux

#use curl to download the zip file and name it awscliv2.zip

curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"


#use the unzip program to extract the package, which will create a folder called 'aws' in the current location

unzip awscliv2.zip

#use sudo to install the CLI
sudo ./aws/install

#confirm successful installation

aws --version

Windows (PowerShell with Admin rights)

#install the msi package directly from the website

msiexec.exe /i https://awscli.amazonaws.com/AWSCLIV2.msi

OR

#install the msi package directly from the website without any user interaction

msiexec.exe /i https://awscli.amazonaws.com/AWSCLIV2.msi /qn

#confirm successful installation

aws --version