How To Install AWS CLI & Check (Verify) Version and Installation Folder

Follow Us on Social Media

How To Install AWS CLI & Check/Verify Version and Installation Folder

How To Install AWS CLI & Check/Verify Version and Installation Folder


AWS CLI could be installed from the official AWS website. The package is available for Windows, Mac and Linux.


AWS could also be installed via the terminal.


To install on Mac, use this link: https://awscli.amazonaws.com/AWSCLIV2.pkg

For command line installation on Mac, use this instead: 


If you have sudo permissions, you can install the AWS CLI for all users on the computer using the following command:


curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg"

sudo installer -pkg AWSCLIV2.pkg -target /


To verify that the shell can find and run the aws command in your $PATH, use this commands which are the same commands on the Windows platform.

which aws

aws --version


The above command installs for all users on MAC.


To install for a single user, you'll first create an XML to specify which folder the AWS CLI is installed to, you must create an XML file with any file name. This file is an XML-formatted file that looks like the following example. Leave all values as shown, except you must replace the path /Users/myusername in line 9 with the path to the folder you want the AWS CLI installed to. The folder must already exist, or the command fails. The following XML example, named choices.xml, specifies the installer to install the AWS CLI in the folder /Users/myusername, where it creates a folder named aws-cli.


<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">

<plist version="1.0">

  <array>

    <dict>

      <key>choiceAttribute</key>

      <string>customLocation</string>

      <key>attributeSetting</key>

      <string>/Users/myusername</string>

      <key>choiceIdentifier</key>

      <string>default</string>

    </dict>

  </array>

</plist>


To install, visit: https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html

To install on Windows, use the following link: https://awscli.amazonaws.com/AWSCLIV2.msi


Alternatively enter the following command in your terminal to install AWS CLI:

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


This will install AWS CLI on your computer.


How To Install AWS CLI & Check (Verify) Version and Installation Folder



To check if the installation was successful, you could use the following commands:


which aws

The above command will display the folder that contains the symlink to the AWS command line tool.


aws --version.

This command will show the version of AWS CLI installed on your machine.


To install on Linux, you can use the curl command to download the installation file: curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"


Alternatively, you can download it on your browser via: https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip

No comments



Powered by Blogger.