Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

eb use

Focus mode
eb use - AWS Elastic Beanstalk

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 AWS CodeCommit.

-r region

--region region

Change the region in which you create environments.

Common options

On this page

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.