Automate your AWS infrastructure with simple command-line tools. Install, configure, and run your first commands in minutes.
Choose your operating system to install AWScli. Each package includes a full CLI interface compatible with AWS services.
curl https://awscli.amazonaws.com/AWSCLIV2-linux-x86_64.zip -o awscli.zip
unzip awscli.zip
sudo ./aws/install
powershell iwr https://awscli.amazonaws.com/AWSCLIV2.msi -OutFile awscli.msi
msiexec /i awscli.msi
aws configure
AWS Access Key ID[None]: AKIAIOSFODNN7S...
AWS Secret Access Key[None]: wJalr3antNRG...
Default region name[None]: us-west-2
Default output format[None]: json
Create ~/.aws/credentials
and ~/.aws/config
with these settings.
aws ec2 describe-instances
Returns JSON list of your running EC2 instances
aws s3 cp myfile.txt s3://my-bucket/
Uploads files to your S3 bucket
aws cloudfront create-distribution \\
--origin-domain-name mybucket.s3.amazonaws.com
Provisions a CDN distribution for your static website
Follow this guide to configure your first AWS CLI workflow.
Use the OS-specific installers in the previous section to set up the awscli command-line tool.
Run aws configure
in your shell. Input your access keys and region from the
IAM Console.
Execute commands like aws ec2 describe-instances
to confirm your CLI environment is working.
Use the help command by adding --help
to see more options.
Create shell scripts that call AWS commands and automate large-scale infrastructure changes.
Take advantage of features like:
--output json
aws configure list
aws --help commands
We're here to help if you run into issues during configuration or run your first command.
Ask questions and get support from the AWS developer community.
💬 Join Discussion →Open a support case for urgent problems or enterprise-level questions.
🛠 Open Support Case →Frequently asked questions about installation and configuration
Make sure you've run the install command successfully and the CLI tools are in your PATH environment variable.
Install in minutes and automate cloud infrastructure tasks with powerful command-line tools.