yunion.io/x/cloudmux@v0.3.10-0-alpha.1/README.md (about)

     1  # cloudmux
     2  
     3  ## Command line tool
     4  
     5  ### Complile
     6  
     7  ```bash
     8  $ make cmd/cmx
     9  ```
    10  
    11  ### Example
    12  
    13  1. List regions
    14  
    15  ```bash
    16  # Aliyun
    17  $ ./_output/bin/cmx --provider Aliyun  --access-key $your_access_key --secret $your_secret region-list 
    18  
    19  # Aws
    20  $ ./_output/bin/cmx --provider Aws --cloud-env ChinaCloud  --access-key $your_access_key --secret $your_secret --debug region-list
    21  
    22  # Azure
    23  $ ./_output/bin/cmx --provider Azure --cloud-env AzurePublicCloud \
    24      --access-key $your_directory_id/$your_subscription_id \
    25      --secret $your_app_id/$your_app_key \
    26      region-list
    27  ```
    28  
    29  2. List zones
    30  
    31  ```bash
    32  # Aliyun
    33  $ ./_output/bin/cmx --provider Aliyun  --access-key $your_access_key --secret $your_secret zone-list
    34  ```
    35  
    36  3. List VM instances
    37  
    38  ```bash
    39  # Aliyun
    40  $ ./_output/bin/cmx --provider Aliyun --region ap-southeast-1 --access-key $your_access_key  --secret $your_secret  instance-list --zone ap-southeast-1a
    41  ```