EB CLI is a terminal interface for creating, configuring, deploying, and managing Elastic Beanstalk applications and environments. It avoids repeated visits to the AWS console and guides setup interactively. section 12.3.6
Deploy a project from its root directory by moving through this practical sequence:
- Run eb init to start the setup wizard. Choose an AWS region, provide AWS access credentials, and name the Elastic Beanstalk application. section 12.3.6
- Confirm the detected Docker setup, select a platform branch, and optionally configure SSH access for instances. section 12.3.6
- Run eb create to create an environment under the application. Choose its name, DNS CNAME prefix, load balancer type, and related service options. section 12.3.6
- Run eb deploy after code changes to archive the application, upload it to S3, and update the running environment. section 12.3.6 section 12.6
Deploying a Docker application
From the project directory, run eb init and create an application such as fact-frenzy. Select a Docker platform and configure the region and credentials. Then run eb create, name the environment fact-frenzy-prod, and wait for the CLI to report that the application is available at its Elastic Beanstalk URL. After changing the code, run eb deploy to publish the new version. section 12.3.6
eb init
Inspect the eb init command as the entry point for interactive Elastic Beanstalk configuration. section 12.3.6
