Saturday, 22 February 2020

Installing The AWS Command Line Interface (AWS CLI) - Part 2

The AWS Command Line Interface is available in two versions.

AWS CLI version 2 

AWS CLI version 2 is the most recent major version of the AWS CLI and supports all of the latest features. Some features introduced in version 2 are not backward compatible with version 1 and you must upgrade to access those features. AWS CLI version 2 is available to install only as a bundled installer. Although you might find it in some package managers, these are not produced or managed by AWS and are therefore not official and not supported by AWS. We recommend that you install the AWS CLI from only the official AWS distribution points, as documented in this guide.

Installing AWS CLI version 2 on Windows 

This section describes how to install, upgrade, and remove AWS CLI version 2 on Windows.
Topics

Prerequisites for Windows 

The AWS CLI version 2 is supported on Windows XP or later.  The AWS CLI version 2 supports only 64-bit versions of Windows.

Installing on Windows

For Windows users, the MSI installation package offers a familiar and convenient way to install the AWS CLI version 2 without installing any other prerequisites.



C:\> aws --version
aws-cli/2.0.0 Python/3.7.4 Windows/10 botocore/2.0.0

Don't include the prompt symbol (C:\>, shown above) when you type a command. These are included in program listings to differentiate commands that you type from output returned by the AWS CLI. The rest of this guide uses the generic prompt symbol, $ , except in cases where a command is Windows-specific.

If Windows is unable to find the program, you might need to close and reopen the command prompt to refresh the path, or add the installation directory to your PATH environment variable manually.

Upgrading on Windows 


  • AWS CLI is updated regularly. Check the Releases page on GitHub to see when the latest version was released. 
  • To update to the latest version, download the latest version of the MSI installer and run it, as described previously. It automatically overwrites the previous version. 


Removing from Windows 

To uninstall the AWS CLI, open the Control Panel, and then choose Programs and Features. Select the entry named AWS Command Line Interface, and then choose Uninstall to launch the uninstaller. Confirm that you want to uninstall the AWS CLI when you're prompted.  You can also launch the Programs and Features program from the command line with the following command.

C:\> appwiz.cpl



No comments:

Post a Comment