cloudcli

command module
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2019 License: MIT Imports: 1 Imported by: 0

README

cloudcli

Terminal-based CLI interface for server and infrastructure management using supported APIs

Install

Download binary for your OS/architecture from the Releases page

sudo wget -O /usr/local/bin/cloudcli https://github.com/cloudwm/cloudcli/releases/download/v0.0.2/cloudcli-linux-amd64 &&\
sudo chmod +x /usr/local/bin/cloudcli

Configure

Set server API host and credentials using one of the following options:

  • yaml configuration file:

    • A configuration file can set CLI flags
    • By default, a file is searched for at $HOME/.cloudcli.yaml
    • A different location can be specified using env var CLOUDCLI_CONFIG="" or --config flag
    • See example-cloudcli.yaml
  • environment variables:

  • CLI flags:

    • Server host and credentials can also be set using flags:
    • cloudcli --api-server "" --api-clientid "" --api-secret ""

Important Please keep your server and API credentials secure, it's recommended to use a configuration file with appropriate permissions and location.

Initialize / Update

Update the CLI and authenticate with the API server

cloudcli init

Re-run the init command to get new features or bug fixes from the server.

Commands

Following is an overview of main supported commands.

See the cloudcli command help messages for full reference.

cloudcli --help
Server commands
cloudcli server list

List all the servers in the account

cloudcli server options

Download and show the available server options for your account.

One of the following flags must be provided:

  --billing      show billing resources
  --cpu          show cpu resources
  --datacenter   show datacenter resources
  --disk         show disk resources
  --image        show image resources
  --network      show network resources
  --ram          show ram resources
  --traffic      show traffic resources

If optional flag --cache is provided, the options will be downloaded to local file cloudcli-server-options.json and loaded from that file if it exists.

Work in progress / Experiemental / Unstable commands

Following commands are work in progress / experiemental / unstable

To enable them set environment variable CLOUDCLI_ENABLE_ALPHA=1

cloudcli server create

Create server

Work In Progress

Advanced Features

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL