/ucloud-cli

UCloud Command Line Interface

Primary LanguageGoApache License 2.0Apache-2.0

UCloud Command Line Interface

The UCloud Command Line Interface is a tool to manage your UCloud services. It's built on the UCloud API.

Install UCloud CLI

You can install UCloud CLI by downloading executable binary file or building from the source code by yourself.

Download binary file

Archive links: Mac Linux Windows

Download the binary file and extract to /usr/local/bin directory or add it to the $PATH

$ curl -o ucloud-cli.tgz http://ucloud-sdk.ufile.ucloud.com.cn/ucloud-cli-<yourOS>-0.1.1-amd64.tgz
$ tar -zxf ucloud-cli.tgz -C /usr/local/bin 
or
$ tar -zxf ucloud-cli.tgz
$ cp ucloud /usr/local/bin
Build from source code

If you have installed golang, run the following commands to install the UCloud CLI.

$ mkdir -p $GOPATH/src/github.com/ucloud
$ cd $GOPATH/src/github.com/ucloud
$ git clone http://github.com/ucloud/ucloud-cli.git
$ cd ucloud-cli
$ make install

Config UCloud CLI

After install the cli, run 'ucloud config' to complete the cli configuration following the tips.