2015-04-21 12 views
9

Quando si esegue un comando con eb:Come aggiornare Amazon elasticbeanstalk CLI

Mi chiede:

Alert: Un aggiornamento per questo CLI è disponibile.

Anche se non riesco a trovare alcuna opzione per aggiornare da opzioni della riga di comando specificato:

$ 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' 

Inoltre non specifica come in tutta la documentazione. EB CLI 3.x.

Grazie!

risposta

18

è possibile aggiornare il CLI eseguendo pip install --upgrade awsebcli

+0

Spiacente, ho installato da homebrew (OS X). – juanitofatas

+6

probabilmente vorrai 'sudo' il comando ^^^. 'sudo pip install --upgrade awsebcli' – Stone

10

Spiacente ho installato da homebrew (OS X).

brew update && brew upgrade 

Detto questo, la versione disponibile tramite pip è più probabilità di rimanere up-to-date nel corso del tempo rispetto alla versione Homebrew.

+1

Ive ha rilevato che la versione homebrew è di circa 2 giorni indietro. Non male. –

+2

Penso che questo comando aggiorni ogni pacchetto che hai installato con 'brew', non solo EB CLI. – Barry

+0

Questa risposta spiega come aggiornare * ogni pacchetto sul proprio sistema *. Per aggiornare solo 'eb', usa' brew upgrade aws-elasticbeanstalk'. Problemi di homebrew 'brew update' di default. –

Problemi correlati