cliak
v0.0.3
Published
Node CLI for CRUD operations on a Riak distributed database instance
Downloads
4
Readme
cliak!
cliak is a minimal Command Line Interface (CLI) written in Node for performing CRUD operations on a Riak distributed database instance.
Installation
:::shell
$ npm install cliak
Usage
:::shell
$ cliak --help
Example
:::shell
$ cliak -h 127.0.0.1 -p 8098 -P http
cliak invoked without any option will use the following default values to connect to the riak instance:
:::javascript
{
host: '127.0.0.1',
port: 8098,
protocol: 'http'
}
Interactions
You can use cliak to perform the following operations:
Exists
Find out if a given object exists in the riak instance.
:::shell
> exists avengers black_widow
Get
Retrieve object data from the riak instance.
:::shell
> get avengers black_widow
Save
Persist/update an object in the riak instance.
:::shell
> save avengers iron_man "{name:'tony starks', power: 'super armor'}"
Note that the object/value to persist must be between double-quotes.
Delete
Delete an object from the riak instance.
:::shell
> delete avengers iron_man
Termination
:::shell
> exit