eb use - Amazon Elastic Beanstalk
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).

eb use

Description

Sets the specified environment as the default environment.

When using Git, eb use sets the default environment for the current branch. Run this command once in each branch that you want to deploy to Elastic Beanstalk.

Syntax

eb use environment-name

Options

Name

Description

--source codecommit/repository-name/branch-name

CodeCommit repository and branch. See Using the EB CLI with Amazon CodeCommit.

-r region

--region region

Change the region in which you create environments.

Common options