AWS CLI
The AWS Command Line Interface (AWS CLI) is a unified tool to manage AWS services from the command line. With just one tool to download and configure, you can control multiple AWS services and automate them through scripts. AWS CLI v2 supports all AWS services with auto-completion, AWS SSO, and improved performance. It is open-source, available on Linux, macOS, and Windows, and is the official CLI for Amazon Web Services.
APIs
AWS CLI
The AWS CLI v2 is the official command-line interface for Amazon Web Services, providing unified access to all AWS services from the terminal with auto-completion, AWS SSO suppo...
Features
Control all AWS services from a single command-line tool with consistent syntax and output formatting.
Shell auto-completion for commands, subcommands, options, and resource names in bash, zsh, and fish.
Native AWS IAM Identity Center (SSO) integration for credential management and multi-account access.
Multiple output formats including JSON, YAML, text, and table, with JMESPath query filtering.
Supports named profiles, environment variables, instance metadata, and credential process plugins.
Interactive step-by-step wizards for complex workflows like IAM role creation and DynamoDB table setup.
Built-in wait commands to poll until AWS resources reach desired states like running or available.
Automatic pagination with configurable page size and support for --no-paginate and --page-size flags.
Stream large binary outputs like EC2 console logs and Lambda function logs directly to stdout.
Extensible plugin architecture for adding custom commands and credential providers.
Use Cases
Automate AWS infrastructure provisioning, configuration, and teardown in CI/CD pipelines and scripts.
Manage multiple AWS accounts and regions using named profiles and AWS Organizations.
Query and filter AWS resource inventories with JMESPath expressions and output formatting.
Process multiple AWS resources in bulk using shell scripting loops and CLI output piping.
Speed up development workflows with quick access to S3, Lambda, DynamoDB, and other services.
Integrations
Native SSO integration for credential vending and multi-account access management.
Pre-installed in AWS CloudShell for browser-based CLI access without local installation.
Available in CodeBuild build environments for CI/CD pipeline automation.
Used in GitHub Actions workflows via the configure-aws-credentials action.
Installable via Homebrew on macOS for easy installation and updates.
Available via winget for installation on Windows systems.