View a markdown version of this page

Getting started with the AWS CLI - AWS Command Line Interface

Getting started with the AWS CLI

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. (Optional) Install AWS Credential Daemon to store your credentials in a protected local daemon instead of in plaintext files. For more information, see Installing AWS Credential Daemon. To use the daemon with the AWS CLI and AWS SDKs through a credential process, see Using AWS Credential Daemon with the AWS CLI and AWS SDKs.

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