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.



This version of EB CLI and its documentation have been replaced with version 3 (in this section, EB CLI 3 represents version 3 and later of EB CLI). For information on the new version, see The Elastic Beanstalk Command Line Interface (EB CLI).


Deploys the current application to the AWS Elastic Beanstalk environment from the Git repository.


  • The eb push operation does not push to your remote repository, if any. Use a standard git push or similar command to update your remote repository.

  • The -e or --environment-name options are not not valid for eb push. To push to a different environment from the current one (based on either the eb init default settings or the Git branch that is currently checked out), run eb branch before running eb push.


eb push


Name Description Required

Common options

For more information, see Eb Common Options.



If successful, the command returns the status of the push operation.


The following example deploys the current application.

PROMPT> eb push
Pushing to environment: MyApp-env
To https://AKIAXXXXXXXX5ZB7Q:2013092XXXXXXXXXXXXf502a780888b0a49899798aa6cbeaef690c0b
2013-09-26 17:35:37     INFO    Adding instance 'i-5EXAMPLE' to your environment.
2013-09-26 17:36:12     INFO    Deploying new version to instance(s).
2013-09-26 17:36:20     INFO    New application version was deployed to running EC2 instances.
2013-09-26 17:36:20     INFO    Environment update completed successfully.
Update of environment "MyApp-env" has completed.