0.7.2 • Published 9 years ago

nfifo v0.7.2

Weekly downloads
4
License
MIT
Repository
github
Last release
9 years ago

nFiFo

NPM

This is a little handy node.js lib to connect to Project FiFo, an VM administration system that uses SmartOS.

Its a simplist alternative to fifo.js that let you query the fifo api.

It will read the file ~/.fifo just like pyfi to read the login credentials

How to use it

Check out an example here.

Additionally, you can install it as a CLI, with npm install nfifo -g:

  • Show all vms, in table format

    nfifo vms

  • Show all vms, in plain json format

    nfifo --table false vms

  • Show dataset base64-14.1.0 details

    nfifo datasets 8639203c-d515-11e3-9571-5bf3a74f354f | prettyjson

  • Delete dataset base64-14.1.0

    nfifo --method delete datasets 8639203c-d515-11e3-9571-5bf3a74f354f

  • Show all packages, with curl tip

    nfifo --curl true packages

  • Dump the zvol of the dataset base64-14.1.0 to a file

    nfifo --json false datasets 8639203c-d515-11e3-9571-5bf3a74f354f dataset.gz > file.zvol.gz

  • Create a new package, from stdin

    echo '{"cpu_cap": 100, "name": "small", "quota": 10, "ram": 1024}' | nfifo --method post --stdin packages

  • Create a new VM, from file

    nfifo --method post --file ./vm_spec.json vms

  • Upload a dataset:

nfifo-upload-dataset.js --zvol file.zvol.gz --manifest manifest_file.json
Uploading (19.0s) [===========----------------------------------------------------------------------] 17% ETA 90.8s

Note: prettyjson and json can be installed with npm install -g ...

0.7.2

9 years ago

0.7.1

9 years ago

0.7.0

9 years ago

0.6.3

9 years ago

0.6.2

9 years ago

0.6.1

9 years ago

0.6.0

10 years ago

0.1.8

10 years ago

0.1.7

10 years ago

0.1.6

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago