Basics

The AWS Command Line Interface (AWS CLI) is an open source tool that enables you to interact with AWS services using commands in your command-line shell.
the AWS CLI enables you to start running commands that implement functionality equivalent to that provided by the browser-based AWS Management Console from the command prompt in your terminal program:
  • Linux shells: Use common shell programs such as bash, zsh, and tcsh to run commands in Linux or macOS.
  • Windows command line: On Windows, run commands at the Windows command prompt or in PowerShell.
  • Remotely: Run commands on Amazon Elastic Compute Cloud (Amazon EC2) instances through a remote terminal program such as PuTTY or SSH, or with AWS Systems Manager.

Installation

visit this page and this page of the official documentation to get the steps on how to install the AWS CLI v2 and v1 respectively on your machine.


    aws --version
        

Configuration

AWS Configure

The AWS CLI stores this information in a profile (a collection of settings) named default in the credentials file

    $aws configure