Skip to content

Instantly share code, notes, and snippets.

@poacosta
Last active December 6, 2023 06:47
Show Gist options
  • Save poacosta/3e3cc1cd06838399fdf016e4a7620d7b to your computer and use it in GitHub Desktop.
Save poacosta/3e3cc1cd06838399fdf016e4a7620d7b to your computer and use it in GitHub Desktop.
Elastic Beanstalk CLI Cheatsheet
# This command will list all your environments which are setup in Elastic Beanstalk (EB)
$ eb list
EnvironmentName1 # Name of the first environment
EnvironmentName2 # Name of the second environment
EnvironmentName3 # Name of the third environment
# This command is used to display the status of the specified environment (EnvironmentName1)
$ eb status EnvironmentName1
# The following command will set an environment variable (ENV_VAR_NAME) to a specific value (value)
# in a specific environment (-e EnvironmentName1)
$ eb setenv ENV_VAR_NAME=value -e EnvironmentName1
# This command will print all environment variables for the specified environment (EnvironmentName1)
$ eb printenv EnvironmentName1
# This command is used to upgrade the platform version of the specified environment (EnvironmentName1).
$ eb upgrade EnvironmentName1
# Ref.: https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb3-cmd-commands.html
@poacosta
Copy link
Author

poacosta commented Dec 6, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment