Migrate from Amazon CLI version 1 to version 2 - Amazon Command Line Interface
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Migrate from Amazon CLI version 1 to version 2

This section contains instructions for updating the Amazon CLI version 1 to Amazon CLI version 2. The Amazon CLI version 2 builds on Amazon CLI version 1 and includes features and enhancements based on community feedback.

Before you migrate to version 2, learn about the differences between the versions. The Amazon CLI version 2 includes new features and changes that might require you to update your scripts or commands for backwards compatibility.

Amazon CLI versions 1 and 2 use the same aws command name. If you have both versions installed, your computer uses the first one found in your search path.

If you previously installed Amazon CLI version 1, follow our migration instructions to start using version 2.

If you have not previous installed Amazon CLI version 1, follow the instructions in Get started with the Amazon CLI.