The AWS CLI lets you control all AWS services from your terminal. Automate, manage, and scale your cloud environment with powerful command-line tools.
Powerful tools for cloud infrastructure management:
Manage every AWS service from your terminal. List instances, configure databases, or deploy infrastructure with simple commands.
Script complex workflows with shell commands. Automate security hardening, infrastructure deployment, and resource scaling with CLI scripts.
Configure access keys and encrypted profiles. Use IAM roles and assume permissions dynamically at runtime.
The CLI is Apache 2.0 licensed for free use and modification. Contribute on GitHub with thousands of open-source contributors.
Choose your operating system to get started
curl -O https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip
unzip awscli-exe-linux-x86_64.zip
sudo ./aws/install
Configure and run common CLI commands
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
aws ec2 describe-instances --query 'Reservations[*].Instances[*].{ID:InstanceId,Type:InstanceType}' --output table
Uses JMESPath to extract instance IDs and types from JSON responses.
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.
The AWS Command Line Interface gives you full control over your cloud with just a few keystrokes.