Ali1213 / ucloud-cli

UCloud Command Line Interface

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

SHA-256 checksum

19b7a0803fc41ee689797a36fd67b288e993c383edf6087f56825a4d5bb17875 ucloud-cli-linux-0.1.2-amd64.tgz
ecc787f4045ea14d583801cd0cfa746be357d50756c2cf0ba879e405c2325d1c ucloud-cli-macosx-0.1.2-amd64.tgz
f48058ac96bb0283b18c660f0350eedba49d03a753775b0a2773b2081698b3f3 ucloud-cli-windows-0.1.2-amd64.zip

Download the binary file and extract to /usr/local/bin directory or add it to the $PATH. Take macOS as an example.

$ curl -o ucloud-cli.tgz http://ucloud-sdk.ufile.ucloud.com.cn/ucloud-cli-macosx-0.1.2-amd64.tgz
$ echo "ecc787f4045ea14d583801cd0cfa746be357d50756c2cf0ba879e405c2325d1c *ucloud-cli-macosx-0.1.2-amd64.tgz" | shasum -a 256 -c
$ 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 https://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. Local settings will be saved in directory $HOME/.ucloud Command 'ucloud ls --object [region|project]' display all the regions and projects. You can change the default region and prject by runing 'ucloud config set [region|project] xxx'. Execute 'ucloud config --help' for more information.

Uninstall UCloud CLI

Remove the executable file /usr/local/bin/ucloud and the directory $HOME/.ucloud

About

UCloud Command Line Interface

License:Apache License 2.0


Languages

Language:Go 98.1%Language:Makefile 1.9%