2015-04-21 14 views
9

Khi chạy một lệnh với eb:Làm thế nào để cập nhật Amazon elasticbeanstalk CLI

Nó nhắc nhở tôi:

Alert: Bản cập nhật CLI này có sẵn.

Mặc dù tôi không thể tìm thấy bất kỳ tùy chọn để cập nhật từ các tùy chọn dòng lệnh đã chỉ định:

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

Nó cũng không xác định như thế nào trong bất kỳ tài liệu. EB CLI 3.x.

Cảm ơn!

Trả lời

18

Bạn có thể cập nhật các CLI bằng cách chạy pip install --upgrade awsebcli

+0

Xin lỗi tôi đã cài đặt bằng homebrew (OS X). – juanitofatas

+6

có lẽ bạn sẽ muốn 'sudo' lệnh đó ^^^. 'sudo pip install --upgrade awsebcli' – Stone

10

Xin lỗi tôi cài đặt bởi homebrew (OS X).

brew update && brew upgrade 

Có nói rằng, phiên bản có sẵn thông qua pip có nhiều khả năng ở lại up-to-date theo thời gian so với phiên bản Homebrew.

+1

Tôi thấy rằng phiên bản homebrew là khoảng 2 ngày sau. Không tệ lắm. –

+2

Tôi nghĩ rằng lệnh này sẽ nâng cấp mọi gói bạn đã cài đặt với 'brew', không chỉ EB CLI. – Barry

+0

Câu trả lời này cho bạn biết cách nâng cấp * mọi gói trên hệ thống của bạn *. Để cập nhật 'eb' chỉ, sử dụng' brew upgrade aws-elasticbeanstalk'. Các vấn đề Homebrew 'cập nhật brew' theo mặc định. –

Các vấn đề liên quan