You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
$ 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
28
14
```
29
15
##### Build from source code
30
16
@@ -38,12 +24,26 @@ $ cd ucloud-cli
38
24
$ make install
39
25
```
40
26
27
+
### Uninstall UCloud CLI
28
+
29
+
Remove the executable file /usr/local/bin/ucloud and the directory $HOME/.ucloud
30
+
41
31
### Config UCloud CLI
42
32
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
46
34
47
-
### Uninstall UCloud CLI
35
+
### Auto complete
36
+
Run 'ucloud --completion' for help
48
37
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.
0 commit comments