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.
The Verdict
Inconvenient truths about shipping in the AI era
Container security, platform engineering, and the agentic shift — tested in production, argued without the hype. The verdict reaches your inbox the moment there's one worth sending.
Related Posts
- 1Terraform MCP server GA: the Apply Gate your auditor will ask aboutDevOps & Cloud · HashiCorp's Terraform MCP server is GA and IBM Bob can write production IaC. ENABLE_TF_OPERATIONS separates a safe assistant from autonomous apply.
- 2Docker 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.
- 3Cloudflare 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.
- 4Platform 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.
Random Posts
- 1Install Mattermost Using Docker ComposeSelf-Hosting · Step-by-step guide to install Mattermost with Docker Compose. Set up secure team chat using Traefik, Let's Encrypt, and Docker on your own server.
- 2Install Exchange Server 2016 on Windows Server 2012 R2SysAdmin & IT Pro · Step-by-step guide to install Exchange Server 2016 on Windows Server 2012 R2, including prerequisites, AD setup, and post-installation configuration.
- 3Install Portainer Using Docker ComposeSelf-Hosting · Learn how to install and configure Portainer using Docker Compose with Traefik and Let's Encrypt on Ubuntu Server. Step-by-step container management setup.
- 4Distinctions Between Terminal, Command Line, Shell, and PromptSysAdmin & IT Pro · Learn the differences between terminal, command line, shell, and prompt in Linux. A beginner-friendly guide to essential CLI concepts and tools.