Installing AWS CLI Version 2 on macOS Sonoma using Terminal

We can make use of the Homebrew package manager to install AWS CLI - Command Line Interface version 2 using macOS Terminal.

  1. Open the Terminal App.
  2. Install Homebrew (optional if already installed) - Install Brew on Mac
  3. Install AWS CLI 2.
    brew install awscli

    This will install the latest version of AWS CLI (which is version 2), you can also use awscli@2 but really is not needed!

    install aws cli 2 on macOS
  4. Validate that AWS CLI was installed correctly using the --version command.
    % aws --version
    aws-cli/2.13.22 Python/3.11.5 Darwin/23.0.0 source/arm64 prompt/off

Facing issues? Have Questions? Post them here! I am happy to answer!

Author Info:

Rakesh (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.

Follow him on: X

You can also reach out to him via e-mail:

Copyright © Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap