How to install AWS CLI 2 on Windows 11 using PowerShell


If you want to install AWS CLI 2 on your Windows 11 PC using PowerShell, you can follow the below steps.

  1. Open PowerShell on your Windows.
  2. Download AWS CLI 2 and run the below cmdlet command.
    Invoke-WebRequest -Uri https://awscli.amazonaws.com/AWSCLIV2.msi -OutFile AWSCLIV2.msi
    Logs:
    Writing web request
    Writing request stream... (Number of bytes written: 19774898)
  3. Next to install the setup, run the command,
    Start-Process -Wait -FilePath .\AWSCLIV2.msi
    
  4. Finally to check the CLI was installed correctly, run the version command.
    PS C:\Users\Sam> aws --version
    
    aws-cli/2.13.22 Python/3.11.5 Windows/10 exe/AMD64 prompt/off
Install AWS CLI 2 using PowerShell Command
Welcome to the AWS Command Line Interface v2 Setup Wizard

If you want to perform a silent installation, you can run the command as follows.

Start-Process -Wait -FilePath msiexec.exe -ArgumentList '/i .\AWSCLIV2.msi /qn'

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: rakesh@code2care.org

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