Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

-bash: aws: command not found

I'm on macOS Mojave Version 10.14.5.

I was following the instructions here

Installing the AWS CLI

when I got to the part to type

aws --version

in terminal, and got the response

-bash: aws: command not found

Here's a screenshot of terminal

terminal

I looked at the other posts similar to this on stackoverflow, but they seem to apply to different contexts. They have not helped.

like image 534
Daniel Brower Avatar asked Jun 04 '19 19:06

Daniel Brower


People also ask

How do you check AWS CLI is installed or not?

By default, the AWS CLI version 1 installs to C:\Program Files\Amazon\AWSCLI (64-bit version) or C:\Program Files (x86)\Amazon\AWSCLI (32-bit version). To confirm the installation, use the aws --version command at a command prompt (open the Start menu and search for cmd to start a command prompt).

What is AWS command in Linux?

The AWS Command Line Interface (AWS CLI) is a unified tool to manage your AWS services. With just one tool to download and configure, you can control multiple AWS services from the command line and automate them through scripts.


2 Answers

you need to install python and pip on your mac in order to install the awscli. After the installation of python and pip, please use following command to install aws cli with latest version from AWS.

sudo pip install awscli --force-reinstall --upgrade

like image 164
Kc Bickey Avatar answered Sep 22 '22 13:09

Kc Bickey


Install python version 3 or higher And Use this command to download aws cli with python3

 curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"
unzip awscli-bundle.zip
sudo /usr/local/bin/python3 awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws
like image 24
mnnim Avatar answered Sep 24 '22 13:09

mnnim