Skip to content

Commit 06746b3

Browse files
committed
Merge remote-tracking branch 'upstream/master' into develop
2 parents e01a874 + f67337b commit 06746b3

2 files changed

Lines changed: 30 additions & 23 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
## Change Log
22

3+
v0.1.3
4+
* integrate auto completion.
5+
* Support uhost create, stop, delete and so on.
6+
7+
v0.1.2
8+
* simplify config and completion.
9+
310
v0.1.1
411
* UHost list; EIP list,delete and allocate; GlobalSSH list,delete,modify and create.

README.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,13 @@ The UCloud Command Line Interface is a tool to manage your UCloud services. It's
44

55
### Install UCloud CLI
66

7-
You can install UCloud CLI by downloading executable binary file or building from the source code by yourself.
7+
You can install UCloud CLI by Homebrew/Linuxbrew, downloading executable binary file or building from the source code by yourself.
88

9-
##### Download binary file
10-
Archive links:
11-
[Mac](http://ucloud-sdk.ufile.ucloud.com.cn/ucloud-cli-macosx-0.1.2-amd64.tgz)
12-
[Linux](http://ucloud-sdk.ufile.ucloud.com.cn/ucloud-cli-linux-0.1.2-amd64.tgz)
13-
[Windows](http://ucloud-sdk.ufile.ucloud.com.cn/ucloud-cli-windows-0.1.2-amd64.zip)
9+
##### Homebrew(recommended)
1410

15-
SHA-256 checksum
11+
You can use [Homebrew](https://brew.sh/) on macOS or [Linuxbrew](http://linuxbrew.sh/) on Linux. After installing Homebrew or Linuxbrew,just type the following command to complete the installation.
1612
```
17-
19b7a0803fc41ee689797a36fd67b288e993c383edf6087f56825a4d5bb17875 ucloud-cli-linux-0.1.2-amd64.tgz
18-
ecc787f4045ea14d583801cd0cfa746be357d50756c2cf0ba879e405c2325d1c ucloud-cli-macosx-0.1.2-amd64.tgz
19-
f48058ac96bb0283b18c660f0350eedba49d03a753775b0a2773b2081698b3f3 ucloud-cli-windows-0.1.2-amd64.zip
20-
```
21-
22-
Download the binary file and extract to /usr/local/bin directory or add it to the $PATH. Take macOS as an example.
23-
```
24-
$ curl -o ucloud-cli.tgz http://ucloud-sdk.ufile.ucloud.com.cn/ucloud-cli-macosx-0.1.2-amd64.tgz
25-
$ echo "ecc787f4045ea14d583801cd0cfa746be357d50756c2cf0ba879e405c2325d1c *ucloud-cli-macosx-0.1.2-amd64.tgz" | shasum -a 256 -c
26-
$ tar -zxf ucloud-cli.tgz
27-
$ cp ucloud /usr/local/bin
13+
brew install ucloud
2814
```
2915
##### Build from source code
3016

@@ -38,12 +24,26 @@ $ cd ucloud-cli
3824
$ make install
3925
```
4026

27+
### Uninstall UCloud CLI
28+
29+
Remove the executable file /usr/local/bin/ucloud and the directory $HOME/.ucloud
30+
4131
### Config UCloud CLI
4232

43-
After install the cli, run 'ucloud config' to complete the cli configuration following the tips. Local settings will be saved in directory $HOME/.ucloud
44-
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'.
45-
Execute 'ucloud config --help' for more information.
33+
After install the cli, run 'ucloud init' to complete the cli configuration following the tips. Local settings will be saved in directory $HOME/.ucloud
4634

47-
### Uninstall UCloud CLI
35+
### Auto complete
36+
Run 'ucloud --completion' for help
4837

49-
Remove the executable file /user/local/bin/ucloud and the directory $HOME/.ucloud
38+
#### Bash shell
39+
Please append the following scripts to file ~/.bash_profile or ~/.bashrc.
40+
```
41+
complete -C /usr/local/bin/ucloud ucloud
42+
```
43+
44+
#### Zsh shell
45+
Please append the following scripts to file ~/.zshrc.
46+
```
47+
autoload -U +X bashcompinit && bashcompinit
48+
complete -F /usr/local/bin/ucloud ucloud
49+
```

0 commit comments

Comments
 (0)