Git Product home page Git Product logo

tcpicli's Introduction

tcpicli

Tencent Cloud Platform International Command Line Interface

Requirements:

Go Programming Language

Make sure to setup $GOPATH

$ export GOPATH=$HOME/go

Usage:

Clone repository:

$ mkdir -p $GOPATH/src/github.com/tencentcloudplatform
$ cd $GOPATH/src/github.com/tencentcloudplatform
$ git clone https://github.com/tencentcloudplatform/tcpicli.git
$ cd tcpicli/tcpicli
$ go get -u github.com/go-ini/ini
$ go get -u github.com/urfave/cli
$ go build
$ go install

Consider symbolic linking the installed executeable:

$ ln -s $HOME/go/bin/tcpicli /usr/local/bin/tcpicli

profile

Select profile to use API keys. Place configuration in ~/.tcpicli/config

Example:

[chinatest]
secretid  = ZBcr8RCC0d5LPJ6j9NTo4aF
secretkey = e7OVRFuOiy2E

tcpicli -vv profile switch chinatest

Then issue your API call against the account that's named in the [brackets].

Help:

tcpicli:

NAME:
   tcpicli - tencent cloud platform command-line interface tool

USAGE:
   tcpicli [global options] command [command options] [arguments...]

VERSION:
   1.1.0.

COMMANDS:
     profile  profile
     do       do <service> <action> <args1=value1> [args2=value2] ...
     vpc      vpc function
     cdn      cdn function
     cvm      cvm function
     img      img function
     ccs      ccs function
     cmq      cmq function
     eip      Elastic IP
     dfw      Cloud FireWall
     lb       Cloud LoadBalancer
     ckafka   Cloud Kafka
     trade    Tencent Cloud Billing information related
     vod      Video on Demand
     account  account function
     help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --vv           verbose
   -f value       filter output
                    Example:
                    tcpicli -f="The status is: {{.code}}" ccs DescribeCluster
                    tcpicli -f="clusterCIDR: {{range .data.clusters}}{{.clusterCIDR}}{{end}}" ccs DescribeCluster
                    tcpicli -f="/path/to/file ccs DescribeCluster"
   --help, -h     show help
   --version, -v  print the version

NOTES:

Some APIs under development. If you receive an error like:

tcpicli lb DescribeLoadBalancers Region=bj
json: cannot unmarshal string into Go struct field .internetMaxBandwidthOut of type float64

use the 'do' command as a temporary workaround:

tcpicli do lb DescribeLoadBalancers Region=bj
{
  "code": 0,
  "codeDesc": "Success",
  "loadBalancerSet": [
  ...

tcpicli's People

Contributors

allenoooo avatar kiyor avatar cynful avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.