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
$ echo "ecc787f4045ea14d583801cd0cfa746be357d50756c2cf0ba879e405c2325d1c *ucloud-cli-macosx-0.1.2-amd64.tgz" | shasum -a 256 -c
33
-
$ tar -zxf ucloud-cli.tgz
34
-
$ cp ucloud /usr/local/bin
35
-
```
36
15
##### Build from source code
37
16
38
17
If you have installed golang, run the following commands to install the UCloud CLI.
@@ -45,12 +24,26 @@ $ cd ucloud-cli
45
24
$ make install
46
25
```
47
26
27
+
### Uninstall UCloud CLI
28
+
29
+
Remove the executable file /usr/local/bin/ucloud and the directory $HOME/.ucloud
30
+
48
31
### Config UCloud CLI
49
32
50
-
After install the cli, run 'ucloud config' to complete the cli configuration following the tips. Local settings will be saved in directory $HOME/.ucloud
51
-
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'.
52
-
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
53
34
54
-
### Uninstall UCloud CLI
35
+
### Auto complete
36
+
Run 'ucloud --completion' for help
55
37
56
-
Remove the executable file /usr/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