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
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.
fmt.Println("Auto completion is on. Please install bash-completion on your platform using brew,yum or apt-get. ucloud completion --help for more information")
Copy file name to clipboardExpand all lines: cmd/configure.go
+22-23Lines changed: 22 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -27,16 +27,7 @@ var config = model.ConfigInstance
27
27
28
28
//NewCmdConfig ucloud config
29
29
funcNewCmdConfig() *cobra.Command {
30
-
31
-
varconfigDesc=`Command 'ucloud config' is used to configure public-key,private-key and other settings.
32
-
33
-
Public-key and private-key could be acquired from https://console.ucloud.cn/uapi/apikey.
34
-
35
-
If you don’t have an UCloud account yet, run 'ucloud sign-up', and authenticate the account with your valid documentation.
36
-
37
-
If you just want to configure default region or project, please run 'ucloud config set region/project xxx'. Run 'ucloud config --help' for more infomation.
38
-
39
-
`
30
+
varconfigDesc=`Public-key and private-key could be acquired from https://console.ucloud.cn/uapi/apikey.`
40
31
varhelloUcloud=`
41
32
_ _ _ _ _ _ _____ _ _
42
33
| | | | | | | | | | / __ \ | | |
@@ -49,10 +40,10 @@ If you just want to configure default region or project, please run 'ucloud conf
49
40
varconfigCmd=&cobra.Command{
50
41
Use: "config",
51
42
Short: "Config UCloud CLI options",
52
-
Long: `Config UCloud CLI options such as credentials and other settings.`,
53
-
Example: "ucloud config; ucloud config set region cn-bj2",
43
+
Long: `Config UCloud CLI options such as private-key,public-key,default region and default project-id.`,
44
+
Example: "ucloud config; ucloud config set region cn-bj2; ucloud config set project org-xxx",
0 commit comments