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.”

Getting started with the AWS CLI

Focus mode
Getting started with the AWS CLI - AWS Command Line Interface

This chapter provides steps to get started with version 2 of the AWS Command Line Interface (AWS CLI) and provides links to the relevant instructions.

  1. Complete all prerequisites - To access AWS services with the AWS CLI, you need at minimum an AWS account and IAM credentials. To increase the security of your AWS account, we recommend that you do not use your root account credentials. You should create a user with least privilege to provide access credentials to the tasks you'll be running in AWS.

  2. Install or gain access to the AWS CLI using one of the following methods:

  3. After you have access to the AWS CLI, configure your AWS CLI with your IAM credentials for first time use.

Troubleshooting installer or configure errors

If you have issues after installing, uninstalling, or configuring the AWS CLI, see Troubleshooting errors for the AWS CLI for troubleshooting steps.

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.