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
The [Homebrew](https://docs.brew.sh/Installation) package manager may be used on macOS and Linux.
13
13
It could install ucloud-cli and its dependencies automatically by running command below.
@@ -34,7 +34,7 @@ If the error is still unresolved, try the following command for help.
34
34
brew doctor
35
35
```
36
36
37
-
**Building from source**
37
+
**Building from source(Recommended if you have golang installed)**
38
38
39
39
If you have installed git and golang on your platform, you can fetch the source code of ucloud cli from github and complie it by yourself.
40
40
@@ -44,16 +44,24 @@ cd ucloud-cli
44
44
make install
45
45
```
46
46
47
-
**Downloading binary release**
47
+
Upgrade to latest version
48
+
49
+
```
50
+
cd ucloud-cli
51
+
git pull
52
+
make install
53
+
```
54
+
55
+
**Downloading binary release(Recommended on Linux)**
48
56
49
57
Vist the [releases page](https://github.com/ucloud/ucloud-cli/releases) of ucloud cli, and find the appropriate archive for your operating system and architecture.
50
58
Download the archive , check the shasum256 hashcode and extract it to your $PATH
echo "efbfb6d36d99f692b1f9cc7c9e3858047bb7b4fca6205c454098267e660b41d9 *ucloud-cli-linux-0.1.22-amd64.tgz" | shasum -c //check shasum to verify whether the downloaded tarball was hijacked. get the shasum from release page
64
+
tar zxf ucloud-cli-linux-0.1.22-amd64.tgz -C /usr/local/bin/
57
65
```
58
66
59
67
## Installing ucloud cli on Windows
@@ -74,22 +82,22 @@ Download the archive , and extract it. Add binary file ucloud.exe to your enviro
74
82
## Using ucloud cli in a Docker container
75
83
If you have installed docker on your platform, pull the docker image embeded ucloud cli by follow command.
flags.StringSliceVar(&ids, "shared-bw-id", nil, "Required. Resource ID of shared bandwidth instances to delete")
215
215
req.EIPBandwidth=flags.Int("eip-bandwidth-mb", 1, "Optional. Bandwidth of the joined EIPs,after deleting the shared bandwidth instance")
216
216
req.PayMode=flags.String("traffic-mode", "", "Optional. The charge mode of joined EIPs after deleting the shared bandwidth. Accept values:Bandwidth,Traffic")
217
-
req.Region=flags.String("region", base.ConfigIns.Region, "Optional. Region, see 'ucloud region'")
218
-
req.ProjectId=flags.String("project-id", base.ConfigIns.ProjectID, "Optional. Project-id, see 'ucloud project list'")
req.OperatorName=cmd.Flags().String("line", "", "Required. 'BGP' or 'International'. 'BGP' could be set in China mainland regions, such as cn-bj2 etc. 'International' could be set in the regions beyond mainland, such as hk, tw-kh, us-ws etc.")
249
252
req.Bandwidth=cmd.Flags().Int("bandwidth-mb", 0, "Required. Bandwidth(Unit:Mbps).The range of value related to network charge mode. By traffic [1, 200]; by bandwidth [1,800] (Unit: Mbps); it could be 0 if the eip belong to the shared bandwidth")
req.OperatorName=cmd.Flags().String("line", "", "Optional. 'BGP' or 'International'. 'BGP' could be set in China mainland regions, such as cn-bj2 etc. 'International' could be set in the regions beyond mainland, such as hk, tw-kh, us-ws etc.")
254
+
bindProjectID(req, cmd.Flags())
255
+
bindRegion(req, cmd.Flags())
252
256
req.PayMode=cmd.Flags().String("traffic-mode", "Bandwidth", "Optional. traffic-mode is an enumeration value. 'Traffic','Bandwidth' or 'ShareBandwidth'")
253
257
req.ShareBandwidthId=cmd.Flags().String("share-bandwidth-id", "", "Optional. ShareBandwidthId, required only when traffic-mode is 'ShareBandwidth'")
254
258
req.Quantity=cmd.Flags().Int("quantity", 1, "Optional. The duration of the instance. N years/months.")
0 commit comments