pacicli

command module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2014 License: MIT Imports: 3 Imported by: 0

README

pacicli

pacicli is a command line interface tool for Parallels Cloud Infrastructure (PACI) API. It makes it easy to manage Containers and Virtual machines on PACI.

Features

  • Works on most of major platforms like Linux, Windows, MacOS X etc.
  • Full API support described in the Official API Document
  • JSON, TOML output support.

Install

Download your platform binary from Release page and put it somewhere you like.

If you'd like to build it by yourself, please use go get:

$ go get -d github.com/tsukaeru/pacicli

Usage

  1. Retrieve your PACI API key from your Hosting Provider's web interface.

  2. Create your working directory, go into it and put Pacifile configuration file. Pacifile should have following settings.

    BaseURL  = "https://example.com/paci/v1.0" # API URL
    Username = "username" # Your account name
    Password = "password" # Your API key
    

    You can write Pacifile both in JSON and TOML. pacicli detects its format automatically. If the file begins with { character, it's parsed as JSON. If not, parsed as TOML.

  3. Run

    pacicli list
    

    If you have some machiens, those would be displayed. If not, please try

    pacicli oslist
    

    It would show the OS list provided by the Hoster. For more command detail, please see

    pacicli help
    

Contribution

  1. Fork (https://github.com/tsukaeru/pacicli/fork)
  2. Create a feature branch
  3. Commit your changes
  4. Rebase your local changes against the master branch
  5. Run test suite with the go test ./... command and confirm that it passes
  6. Run go fmt
  7. Create new Pull Request

License

pacicli is under MIT license. See the LICENSE file for details.

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