How do uninstall a CLI for mac

0

Hello everyone, I'm currently following an udemy course for the AWS cloud practitioner exam. This would be my second or third attempt at this course and I'm having trouble using the terminal on my macbook to configure/access the CLI.

For my tutorial we learned how to download the latest version of CLI on a mac then was instructed to open my terminal and configure it by using the new access key and secret access key. However when I inputed aws configure in the terminal here is what it outputted.

Last login: Tue Feb 7 17:48:40 on ttys000 (base) khalidabdalla@Khalids-MacBook-Air ~ % aws configure AWS Access Key ID [****************SXFZ]: AWS Secret Access Key [****************6WW3]: Default region name [us-east-1]: us-east-1 Default output format [none]: (base) khalidabdalla@Khalids-MacBook-Air ~ % aws iam list-users

Unknown output type: none

I'm not sure why there is a different access key and secret access key (maybe from the cli package I downloaded in the past ?)

Kv3
asked a year ago413 views
2 Answers
0
Accepted Answer

Rerun the 'aws configure' command and accept the current values for everything (just hit return/enter) except 'Default output format'. Type in 'json' for that. Then rerun your command. You can also override this value on the command line with the --output option.

aws iam list-users --output json
profile pictureAWS
EXPERT
kentrad
answered a year ago
  • Amazing, worked like a charm! Thank you !

0

Hi there to remove the AWS CLI from your MAC, follow the instructions here - https://docs.aws.amazon.com/cli/latest/userguide/uninstall.html please make sure you read all the instructions to make sure it meets your requirements

AWS
EXPERT
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions