2015-04-21 14 views
9

При выполнении команды с eb:Как обновить Amazon elasticbeanstalk CLI

Это побуждает меня:

оповещения: обновление этого 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' 

Он также не определяет, как в какой-либо документации. EB CLI 3.x.

Спасибо!

ответ

18

Вы можете обновить CLI, запустив pip install --upgrade awsebcli

+0

Извините, что я установил homebrew (OS X). – juanitofatas

+6

вы, вероятно, захотите «sudo» эту команду ^^^. 'sudo pip install --upgrade awsebcli' – Stone

10

Извините, я установил на самогон (OS X).

brew update && brew upgrade 

Сказав, что, версия доступна через pip, скорее всего, оставаться актуальной в течение долгого времени, чем Homebrew версии.

+1

Ive обнаружил, что версия доморощенного около 2 дней. Не плохо. –

+2

Я думаю, что эта команда обновит каждый пакет, который вы установили с помощью 'brew', а не только EB CLI. – Barry

+0

В этом ответе вам рассказывается, как обновить * каждый пакет в вашей системе *. Чтобы обновить 'eb' только, используйте' brew upgrade aws-elasticbeanstalk'. Homebrew выпускает 'brew update' по умолчанию. –

Смежные вопросы