AWS CLI
Last updated
Last updated
This section provides links to information about how to install, update, and uninstall version 2 of the AWS Command Line Interface (AWS CLI) on the supported operating systems.
Follow these steps from the command line to install the AWS CLI on Linux.
We provide the steps in one easy to copy and paste group based on whether you use 64-bit Linux or Linux ARM. See the descriptions of each line in the steps that follow.
For the latest version of the AWS CLI, use the following command block:
a.Download the AWS CLI MSI installer for Windows (64-bit):
For the latest version of the AWS CLI:
To update your current installation of AWS CLI version 2 on Windows, download a new installer each time you update to overwrite previous versions. AWS CLI is updated regularly.
b.Run the downloaded MSI installer and follow the on-screen instructions. By default, the AWS CLI installs to C:\Program Files\Amazon\AWSCLIV2
.
c.To confirm the installation, open the Start menu, search for cmd
to open a command prompt window, and at the command prompt use the aws --version
command.
d.Don't include the prompt symbol (C:\>
) 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.
This section explains how to configure the settings that the AWS Command Line Interface (AWS CLI) uses to interact with AWS. These include your security credentials, the default output format, and the default AWS Region.Note
For general use, the aws configure command is the fastest way to set up your AWS CLI installation. When you enter this command, the AWS CLI prompts you for four pieces of information:
****
If Windows is unable to find the program, you might need to close and reopen the command prompt window to refresh the path, or environment variable manually.