Install AWS CLI on macOS
By Vladimir Mikhalev · Solutions Architect · Docker Captain · IBM Champion
This article is for those looking for a detailed and straightforward guide on installing AWS CLI on macOS.
The AWS CLI is a single tool for managing AWS services. With just one tool download, you can control many AWS services from the command line and automate them with scripts.
TIPArchitecture Context
AWS CLI is essential for scripting and automation workflows that exceed what the AWS Console provides. For infrastructure provisioning, Terraform or CloudFormation offer declarative alternatives with state management and drift detection. CLI is the right choice for ad-hoc operations, debugging, and scripting — while IaC tools should handle repeatable infrastructure deployments.
NOTEWe will be using the iTerm2 terminal emulator.
Download the AWS CLI installer using the command:
curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg"
Let’s start the AWS CLI installation using the command:
sudo installer -pkg AWSCLIV2.pkg -target /
Specify the password for the account and press “Enter”.

Now you can see the location of the executable file with the command:
which aws
You can now view the installed version of AWS CLI using the command:
aws --version
Everything is ready to use the AWS CLI.

You can read more about how to configure AWS CLI in my guide Configure AWS CLI.
Related Posts
- 1Docker supply chain hardening — from Scout D to OpenSSF 7.8 on a 730K-pull imageDevOps & Cloud · How I hardened a 730K-pull public Docker image from Scout grade D to OpenSSF Scorecard 7.8. Multi-stage build, cosign signing, SLSA provenance, non-root default, and the incident that changed how I ship attestations.
- 2Cloudflare Web Analytics on Astro — Why Removing GA4 Unlocked Lighthouse 100DevOps & Cloud · How removing Google Analytics 4 from an Astro site unlocked Lighthouse 100, why Cloudflare Web Analytics replaced it, and what the tradeoffs actually cost.
- 3Platform Engineering — The Complete, Practical Guide to Building Internal Developer Platforms That ScaleDevOps & Cloud · A deep, practical guide to Platform Engineering. Learn how to build internal developer platforms, golden paths, GitOps workflows, and scalable cloud foundations.
- 4Amazon Q vs DevOps Chaos — Can This AI Fix AWS Faster Than You?DevOps & Cloud · Fix AWS issues faster with Amazon Q, the AI assistant built for DevOps. Real-world examples, limitations, and how it compares to ChatGPT.
Random Posts
- 1Infosys Deploys Devin AI Globally — And Your DevOps Career Just Became Legacy LaborOpinion & Culture · Infosys just deployed Devin AI globally. If you are a DevOps engineer competing on technical execution, you are now "Legacy Labor". Here is the blueprint to survive.
- 2Unlocking Terraform State with force-unlock CommandDevOps & Cloud · Learn how to use Terraform's force-unlock command to resolve locked state issues. Step-by-step guide for safe state recovery in DevOps workflows.
- 3I Tested an AI Agent on My Live Systems. Here Is the Blast Radius Assessment Every Engineer Is Skipping.Opinion & Culture · Everyone is buying Mac Minis and installing AI agents. I tested one in isolation. Here is the architectural framework for deployment that the Instagram hype does not include.
- 4Install Active Directory Domain Services on Windows Server 2019 Server CoreSysAdmin & IT Pro · Learn how to install and configure Active Directory Domain Services on Windows Server 2019 Server Core using PowerShell. Step-by-step setup for your AD DS role.