Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Skip to main content

AWS Command Line Interface

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.

How it works

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. 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 in your terminal program

Getting started with the AWS CLI walks you through installing and configuring the AWS CLI. After that, you can begin making calls to AWS services from the command line.

You can get help at various levels directly on the command line to learn more. You can get general help,

$ 'aws help'

you can learn more about operations for a service,

$ 'aws [AWS service] help'

and you can learn more about a specific service operation.

$ 'aws [AWS service] [operation] help'

Features

The AWS CLI v2 includes a command completion feature that enables you to use the tab key to complete a partially-entered command and show suggestions.

Enable command completion in the AWS CLI

The AWS CLI v2 can prompt you with commands, parameters, resources, documentation, and more when running an 'aws' command.

Enable auto-prompt in the AWS CLI

The 'aws history list' and 'aws history show' commands allow you to interact with the history of AWS CLI commands that are run over time.

Enable history in the AWS CLI