Windows - Installing AWS CLI¶
Warning
Only one version of AWS CLI can be installed at a time. If you have another version of AWS CLI installed, including a version installed by support, it must first be removed.
To install AWS CLI:¶
-
Download the AWSCLIV2.msi file, then move the installer to
D:\bc\downloads
. -
Open a command prompt, then run the following command to extract the installer:
msiexec /a d:\abc\downloads\AWSCLIV2.msi /qb TARGETDIR=d:\abc\software\awscli
-
Update your
Path
variable by doing the following:- Open the Control Panel, search for Path, then click Edit environment variables for your account.
- Edit the
Path
user variable to includeD:\abc\software\awscli\Amazon\AWSCLIV2
.
-
Ensure your
Path
variable is set correctly by opening a new command prompt, then running the following command:aws --version