AWS Command Line Interface

Command Line Interface(CLI)

Introduction to Command Line Interface(CLI)


The AWS command-line interface(CLI) is an open-source tool that enables you to interact with AWS services using commands in your command line shell. With minimal configuration, 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.

Linux shells: use common shell programs such as bash.
Windows command Line: on windows run the commands at the Windows command prompt.
*AWS CLI provides direct access to the public APIs of AWS services.

How to install AWS CLI?

*Download the AWS CLI MSI installer for Windows (64-bit) at
*Run the downloaded MSI installer and follow the on-screen instructions. By default, the AWS CLI installs to C: program files\Amazon\AWSCLIV2.
*To confirm the installation, open the Start menu, search for cmd to open a command prompt window, and at the command prompt use the “aws –version” command.
*Don’t include the prompt symbol (C:\>) when you type a command. These are included in program listings to differentiate commands that you type from output returned by the AWS CLI. The rest of this guide uses the generic prompt symbol ($), except in cases where a command is Windows-specific.

How to configure AWS CLI:

To configure AWS CLI go to IAM console and create one user and download the CSV file.


Click on Add User ( Learn More- AWS IAM)

AWS user add for AWS Command Line Interface(CLI)

Add all required input ( AWS Access type, Permissions, Keys etc)

create user for AWS Command Line Interface(CLI)

By downloading the CSV file you will get one access key and secret key.
*Now open the command prompt and configure by giving the command and give the default region name.


To open Command Prompt ( Click Window Button , Search for Command Prompt)

AWS CLI Installation

List S3 buckets using AWS CLI:

To list s3 bucket first create s3 bucket. To create an s3 bucket go the services and click on s3 and create s3 bucket.

Create bucket:

List all the buckets in s3 using aws CLI the command is “aws s3 ls”.
Delete the bucket in s3 use the command “aws s3 RB s3://bucket-name.

CLI Prompt:

AWS Command Line Interface(CLI)



In this way, CLI ( Command Line Interface) is very useful. Main benefits with CLI is to save lot of time. CLI is best tool to maintain, manage and monitor AWS services.


Leave a Reply

%d bloggers like this: