Installing AWS CLI Version 2 on macOS
The AWS Command Line Interface (CLI) enables you to manage AWS services directly from your terminal. Follow these steps to install AWS CLI Version 2 on macOS.
Step 1: Download the AWS CLI Installer
- Search for the Installer:
- Open your browser and search for "installing the AWS CLI version 2 on macOS".
- Click on the official AWS documentation link for installing AWS CLI Version 2 on macOS.
- Download the
.pkg File:
- Locate the macOS Installer (.pkg) on the page.
- Click the download link to get the graphical installer.
Step 2: Install AWS CLI on macOS
- Run the Installer:
- Locate the downloaded
.pkg file and double-click to open it.
- Follow the Installation Steps:
- Step 1: Click Continue on the introductory screen.
- Step 2: Agree to the license terms by clicking Agree.
- Step 3: Select Install for all users on this computer and click Continue.
- Step 4: Click Install to begin the installation process.
- Complete the Installation:
- Once the installation is complete, a success message will appear.
- You can move the installer file to the trash if prompted.
Step 3: Verify the Installation
- Open a Terminal:
- Launch the terminal by searching for Terminal in Spotlight (
Cmd + Space) or by using a terminal app like iTerm (a free terminal alternative for macOS).
- Check AWS CLI Version:
- Verify the Output:
-
If the installation was successful, you will see output similar to:
aws-cli/2.x.x Python/X.x.x Darwin/x.x
-
The version number starting with 2 confirms that AWS CLI Version 2 is installed.
Troubleshooting
- If the installation fails or the command doesn't return a version, refer to the official AWS CLI documentation for macOS installation troubleshooting tips.