Step 1: Install or upgrade and then configure the Amazon CLI - Amazon CodeDeploy
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.

Step 1: Install or upgrade and then configure the Amazon CLI

To call CodeDeploy commands from the Amazon CLI on a local development machine, you must install the Amazon CLI. CodeDeploy commands first became available in version 1.6.1 of the Amazon CLI. CodeDeploy commands for working with on-premises instances became available in 1.7.19 of the Amazon CLI.

If you have an older version of the Amazon CLI installed, you must upgrade it so the CodeDeploy commands are available. Call aws --version to check the version.

To install or upgrade the Amazon CLI:

  1. Follow the instructions in Installing the Amazon Command Line Interface to install or upgrade the Amazon CLI.

  2. To configure the Amazon CLI, see Configuring the Amazon Command Line Interface and Managing access keys for IAM users.

    Important

    When you configure the Amazon CLI, you are prompted to specify an Amazon Region. Choose one of the supported regions listed in Region and endpoints in the Amazon General Reference.

  3. To verify the installation or upgrade, call the following command from the Amazon CLI:

    aws deploy help

    If successful, this command displays a list of available CodeDeploy commands.