Skip to content

A CLI for managing virtual machines in Tencent Cloud.

License

Notifications You must be signed in to change notification settings

danmrichards/tcloud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tencent Cloud CLI

A CLI for managing virtual machines in Tencent Cloud.

Summary

With this CLI you are able to create, update and delete Cloud Virtual Machine (CVM) instances in Tencent Cloud.

Installation

To build the CLI from source you need to have make and go installed on your machine. You can then build the binaries by running this from from the root directory of this repository:

$ make

Configuration

A JSON config file is required to use the CLI, by default this file has to be placed in $HOME/.tcloud.json. This can be overridden with the -config flag.

An example config file is as follows:

{
  "tencent_secret_id": "MY_SECRET_ID_GOES_HERE",
  "tencent_secret_key": "MY_SECRET_KEY_GOES_HERE"
}

Alternatively you can set environment variables for the configuration. These variables must be named as the uppercase versions of those in the example json above. For example TENCENT_SECRET_ID=foobar would set the secret ID to foobar.

Usage

A CLI for managing virtual machines in Tencent Cloud.

With this CLI you are able to create, update and delete Cloud Virtual Machine
(CVM) instances in Tencent Cloud.

A JSON config file is required to use the CLI, by default this file has to be
placed in $HOME/.tcloud.json. This can be overridden with the -config
flag. An example config file is as follows:

{
  "tencent_secret_id": "MY_SECRET_ID_GOES_HERE",
  "tencent_secret_key": "MY_SECRET_KEY_GOES_HERE"
}

Usage:
  tcloud [command]

Available Commands:
  help        Help about any command
  images      Commands for interacting with Cloud Virtual Machine images.
  instances   Commands for interacting with Cloud Virtual Machine instances.
  regions     Commands for interacting with Tencent Cloud regions.
  zones       Commands for interacting with Tencent Cloud availability zones.

Flags:
      --config string   config file (default is $HOME/.tcloud.json)
  -h, --help            help for tcloud
      --region string   The Tencent Cloud API region. See: tcloud regions list. (default "eu-frankfurt")
  -t, --toggle          Help message for toggle

Use "tcloud [command] --help" for more information about a command.

About

A CLI for managing virtual machines in Tencent Cloud.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published