bizflycloud / bizflyctl

Command Line for Bizfly Cloud
Apache License 2.0
15 stars 7 forks source link

bizflyctl

Command line to interact with Bizfly Cloud

Install bizflyctl

There are three ways to install the bizflyctl.

Using homebrew on macOS:

brew tap bizflycloud/bizflyctl
brew install bizflyctl

Build from source code

git clone https://github.com/bizflycloud/bizflyctl
go build -o bizfly main.go

Download the latest release in Github release pages

Install and configure

Using config file

email: <your email>
password: <your password>

Using environment variables

Example

➜  bizflycli git:(master) ✗ bizfly --help
Bizfly Cloud Command Line

Usage:
  bizfly [command]

Available Commands:
  help        Help about any command
  server      Bizfly Cloud Server Interaction
  snapshot    Bizfly Cloud Snapshot Interaction
  volume      Bizfly Cloud Volume Interaction

Flags:
      --config string     config file (default is $HOME/.bizfly.yaml)
      --email string      Your Bizfly Cloud Email
  -h, --help              help for bizfly
      --password string   Your Bizfly Cloud Password
  -t, --toggle            Help message for toggle

Use "bizfly [command] --help" for more information about a command.
➜  bizflycli git:(master) ✗ bizfly snapshot get 5af19947-566d-48a1-bc45-93666086951f
+--------------------------------------+----------------------------+-----------+------+--------------------------------------+----------------------------+--------------------------------------+
|                  ID                  |            NAME            |  STATUS   | SIZE |                 TYPE                 |         CREATED AT         |              VOLUME ID               |
+--------------------------------------+----------------------------+-----------+------+--------------------------------------+----------------------------+--------------------------------------+
| 5af19947-566d-48a1-bc45-93666086951f | snapshot-15-38-41-4-5-2019 | available |   20 | ec6fb900-1ae0-4e9e-90e0-53a6063f95e1 | 2019-05-04T06:38:48.000000 | 172b31b6-1d2c-4421-9e89-c74e28d0d77d |
+--------------------------------------+----------------------------+-----------+------+--------------------------------------+----------------------------+--------------------------------------+