AWS Command Line Interface
Developer Tools · Learn this early
Type AWS commands in a terminal instead of clicking around the website.
Ordering by phone with an exact list, instead of walking every aisle of the shop.
What it actually does
The AWS CLI is one program that can call almost every AWS service. You install it, configure credentials, and run commands like aws s3 cp. Version 2 is the current one, version 1 reached end of support. Output is JSON by default, and the --query and --output flags are what make it usable. Some services have long, unfriendly command names.
Reach for it when
- You want to script something you do repeatedly
- You need a feature the console has not exposed yet
- You are debugging permissions and want the exact error
Do not reach for it when
- You are writing an application, use the SDK for your language, not shell calls
- You want repeatable infrastructure, use CloudFormation or CDK, not a pile of CLI commands
One small example
Copying a folder of files to S3 with one command instead of dragging them in the browser.
How you pay
Free. The trap is a command like a full S3 listing or a wide CloudWatch query running up request or scan charges.
Usually sits next to
The real source
This is a simplified summary written for people learning AWS. The official AWS documentation is the authoritative word and it wins wherever this page disagrees with it.