AWS Elastic Beanstalk
Developer Guide

Install the EB CLI Using Setup Scripts

The Elastic Beanstalk Command Line Interface (EB CLI) is a command line client that you can use to create, configure, and manage Elastic Beanstalk environments.

Install the EB CLI

Use the EB CLI setup scripts to install the EB CLI on Linux, macOS, or Windows. The scripts install the EB CLI and its dependencies, including Python and pip. The scripts also create a virtual environment for the EB CLI. Use the following procedures to download the scripts and install the EB CLI.

Prerequisites

You must have Git installed. To see which version of Git you have, use the following command.

$ git --version git version version-number

If you don't have Git, install it. You can install Git from websites such as Git Downloads.

Install the EB CLI on Linux and macOS

For Bash and Zsh

  1. Clone the aws-elastic-beanstalk-cli-setup repository from GitHub.

    $ git clone https://github.com/aws/aws-elastic-beanstalk-cli-setup.git
  2. Run the bundled installer.

    $ ./aws-elastic-beanstalk-cli-setup/scripts/bundled_installer
  3. Follow the instructions that the bundled installer outputs to add Python and the EB CLI to your PATH variable.

Install the EB CLI on Windows

In PowerShell or the Command Prompt window

  1. Clone the aws-elastic-beanstalk-cli-setup repository from GitHub.

    $ git clone https://github.com/aws/aws-elastic-beanstalk-cli-setup.git
  2. Run the bundled installer.

    $ .\aws-elastic-beanstalk-cli-setup\scripts\bundled_installer

Update the EB CLI

To upgrade to the latest version of the EB CLI, download the latest version of the EB CLI setup scripts and rerun the bundled installer.

Troubleshooting

If you encounter issues when using the EB CLI setup scripts, we recommend creating an issue in the aws-elastic-beanstalk-cli-setup repository on GitHub.