如何更新Amazon elasticbeanstalk CLI

Jua*_*tas 11 amazon-web-services

运行命令时eb:

它提示我:

警报:此CLI的更新可用.

虽然我找不到任何从指定命令行选项更新的选项:

$ eb -h
usage: eb (sub-commands ...) [options ...] {arguments ...}

Welcome to the Elastic Beanstalk Command Line Interface (EB CLI).
For more information on a specific command, type 'eb {cmd} --help'.

commands:
  clone       Clones an environment.
  config      Edits the environment configuration settings or manages saved configurations.
  console     Opens the environment in the AWS Elastic Beanstalk Management Console.
  create      Creates a new environment.
  deploy      Deploys your source code to the environment.
  events      Gets recent events.
  init        Initializes your directory with the EB CLI. Creates the application.
  list        Lists all environments.
  logs        Gets recent logs.
  open        Opens the application URL in a browser.
  printenv    Shows the environment variables.
  scale       Changes the number of running instances.
  setenv      Sets environment variables.
  ssh         Opens the SSH client to connect to an instance.
  status      Gets environment information and status.
  swap        Swaps two environment CNAMEs with each other.
  terminate   Terminates the environment.
  use         Sets default environment.

optional arguments:
  -h, --help            show this help message and exit
  --debug               toggle debug output
  --quiet               suppress all output
  -v, --verbose         toggle verbose output
  --profile PROFILE     use a specific profile from your credential file
  -r REGION, --region REGION
                        use a specific region
  --no-verify-ssl       do not verify AWS SSL certificates
  --version             show application/version info

To get started type 'eb init'. Then type 'eb create' and 'eb open'
Run Code Online (Sandbox Code Playgroud)

它也没有在任何文档中指定.EB CLI 3.X.

谢谢!

小智 18

您可以通过运行来更新CLI pip install --upgrade awsebcli

  • 你可能会想要'sudo'那个命令^^^.'sudo pip install --upgrade awsebcli' (6认同)

Rya*_*man 10

对不起,我是由自制软件(OS X)安装的.

brew update && brew upgrade aws-elasticbeanstalk
Run Code Online (Sandbox Code Playgroud)

话虽如此,pip随着时间的推移,可用的版本比Homebrew版本更容易保持最新.

  • 我认为这个命令会升级你用`brew`安装的每个软件包,而不仅仅是EB CLI. (2认同)