AWS Elastic Beanstalk
Developer Guide (API Version 2010-12-01)
AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

eb use


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.


eb use environment_name




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

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

-r region

--region region

Change the region in which you create environments.

Common options

On this page: