AWS Command Line Interface

The AWS CLI lets you control all AWS services from your terminal. Automate, manage, and scale your cloud environment with powerful command-line tools.

Key Features

Powerful tools for cloud infrastructure management:

Access 150+ Services

Manage every AWS service from your terminal. List instances, configure databases, or deploy infrastructure with simple commands.

Automate Everything

Script complex workflows with shell commands. Automate security hardening, infrastructure deployment, and resource scaling with CLI scripts.

Secure Configuration

Configure access keys and encrypted profiles. Use IAM roles and assume permissions dynamically at runtime.

Open Source

The CLI is Apache 2.0 licensed for free use and modification. Contribute on GitHub with thousands of open-source contributors.

Install AWS CLI

Choose your operating system to get started

Linux

curl -O https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip
unzip awscli-exe-linux-x86_64.zip
sudo ./aws/install
View Details

macOS

brew install awscli
aws --version
View Details

Windows

msiexec /i AWSCLIV2.msi
View Details

Getting Started

Configure and run common CLI commands

Configuration

aws configure
AWS Access Key ID [None]: YOUR_ACCESS_ID
AWS Secret Key [None]: YOUR_SECRET_KEY
Default region name [None]: us-east-1
Default output format [None]: json

Stores credentials in ~/.aws/credentials and ~/.aws/config

Full Config Docs

View EC2 Instances

aws ec2 describe-instances --query 'Reservations[*].Instances[*].{ID:InstanceId,Type:InstanceType}' --output table

Uses JMESPath to extract instance IDs and types from JSON responses.

S3 Commands

aws s3 cp local-file.txt s3://my-bucket/
aws s3 sync . s3://my-bucket/

Upload or sync files to Amazon S3. Works with recursive folder structures.

Ready to Automate?

The AWS Command Line Interface gives you full control over your cloud with just a few keystrokes.