deferpanic / dpcli

DeferPanic.Net Unikernel IaaS Client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dpli

DeferPanic.Net Unikernel IaaS Client

Website: https://deferpanic.com

wercker status

Quick Start:

This will create an account for you and auto-log you in through the API:

./dpcli users create joe@bob.com joebob password

Authentication:

You'll need an account so go sign up at https://deferpanic.com/signup if you haven't created it through the API. Then you can find your API token @ https://deferpanic.com/home/settings.

You can either pass your token in with the -token flag or you maybe stick it in ~/.dprc.

Example if using the token flag:

./dpcli --token="TOKEN"

Dependencies:

go get gopkg.in/alecthomas/kingpin.v2
go get  github.com/olekukonko/tablewriter

Build

cd dpcli && go build && go install

Projects

Create from Repository

dpcli projects new myproject php rumprun https://github.com/deferpanic/php_example

Create from Image Binary

Fork an Existing Project

Clone an Addon

Remove

dpcli projects delete myproject

List

dpcli projects list

View Log

dpcli projects log myproject

Download image

./dpcli projects download myproject .

Download manifest

./dpcli projects manifest myproject

Instances

Create

./dpcli instances new myproject

Log of Individual Instance

./dpcli instances log gregory-jennifer.deferpanic.com

List all Instances

./dpcli instances list

List of Instances attached to Image/Project

./dpcli instances list myproject

Pause

./dpcli instances pause gregory-jennifer.deferpanic.com

Resume

./dpcli instances resume gregory-jennifer.deferpanic.com

ScaleUp

./dpcli instances scaleup myproject

ScaleDown

./dpcli instances scaledown myproject gregory-jennifer.deferpanic.com

Volumes

List By Domain

./dpcli volumes list --domain=stephen-anna.deferpanic.com

List by Image Name

./dpcli volumes list --name=text

Download Volume

Note: To download a volume you currently need to pause the instance. (Live volume streaming coming soon.)

Pause the instance

./dpcli instances pause my_cname.deferpanic.com
./dpcli volumes download id

IPs

Request

./dpcli ips request

Release

./dpcli ips release 1.2.3.4

Attach

./dpcli ips attach 1.2.3.4 stephen-anna.deferpanic.com

Detach

./dpcli ips detach 1.2.3.4

List

./dpcli ips list

Backups

Save

Pause the instance (Live Backups coming soon.)

./dpcli instances pause gregory-jennifer.deferpanic.com

Back it up

./dpcli backups save myproject gregory-jennifer.deferpanic.com

Restore

Pause the instance

./dpcli instances pause gregory-jennifer.deferpanic.com

Back it up

./dpcli backups restore myproject gregory-jennifer.deferpanic.com

List

./dpcli backups list

Languages

List

./dpcli languages

Compilers

List

./dpcli compilers

Builds

List

./dpcli builds list projectId

Latest

./dpcli builds latest projectId

Show

./dpcli builds show buildId

Resources

Create

List

To see all your provisioned resources:

./dpcli resources list

To see the resources attached to a given project:

./dpcli resources list myproject

Available

To see the available resources:

./dpcli --token="TOKEN" resources available

Addons

To see the available addons:

dpcli --token="TOKEN" addons

Status

dpcli status

Version

dpcli version

Examples

Static Website

Php

Php with Redis

Php with Mysql

Ruby and Sinatra

Python

Node Js

Go

Go with DeferPanic client

Developing

Go 1.6 is Required.

About

DeferPanic.Net Unikernel IaaS Client

License:MIT License


Languages

Language:Go 100.0%