The primary distribution method for the AWS CLI on Linux, Windows, and macOS is pip
, a package manager for Python that provides an easy way to install, upgrade, and remove Python packages and their dependencies.
Current AWS CLI Version
The AWS CLI is updated frequently with support for new services and commands. To see if you have the latest version, see the releases page on GitHub.
Requirements
-
Python 2 version 2.6.5+ or Python 3 version 3.3+
-
Windows, Linux, macOS, or Unix
Note
Older versions of Python may not work with all AWS services. If you see InsecurePlatformWarning
or deprecation notices when you install or use the AWS CLI, update to a recent version.
If you already have pip
and a supported version of Python, you can install the AWS CLI with the following command:
$ pip install awscli --upgrade --user
The --upgrade
option tells pip
to upgrade any requirements that are already installed. The --user
option tells pip
to install the program to a subdirectory of your user directory to avoid modifying libraries used by your operating system.
If you encounter issues when you attempt to install the AWS CLI with pip
, you can install the AWS CLI in a virtual environment to isolate the tool and its dependencies, or use a different version of Python than you normally do.
Standalone Installers
For offline or automated installations on Linux, macOS, or Unix, try the bundled installer. The bundled installer includes the AWS CLI, its dependencies, and a shell script that performs the installation for you.
On Windows, you can also use the MSI installer. Both of these methods simplify the initial installation, with the tradeoff of being more difficult to upgrade when a new version of the AWS CLI is released.
After you install the AWS CLI, you may need to add the path to the executable file to your PATH variable. For platform specific instructions, see the following topics:
Verify that the AWS CLI installed correctly by running aws --version
.
$ aws --version
aws-cli/1.11.84 Python/3.6.2 Linux/4.4.0-59-generic botocore/1.5.47
The AWS CLI is updated regularly to add support for new services and commands. To update to the latest version of the AWS CLI, run the installation command again.
$ pip install awscli --upgrade --user
If you need to uninstall the AWS CLI, use pip uninstall
.
$ pip uninstall awscli
If you don't have Python and pip
, use the procedure for your operating system:
Sections
Comments
0 comments
Please sign in to leave a comment.