Home > riak-console

riak-console

Riak-console is a project mainly written in Ruby, it's free.

An interactive command line interface to Riak.

Riak Console

An interactive command line interface to Riak.

Installation and Running

bundle
bin/riak-console

Bonus points for building a gemspec :)

Usage

Get Object

Get an object from a {bucket,key} pair.

> get 'addresses', 'jane'
content-type: application/x-ruby-marshal
vclock: a85hYGBgzGDKBVIsDBeawjKYEhnzWBmK4rqO82UBAA==
etag: B3SP2OAPO58kw6Y9fzeH0
last_modified: 2011-07-07 17:44:34 +0100
links:
data:
"13 New Street"
=> true

JSON is automatically demarshalled:

> get 'addresses', 'jane'
content-type: application/json
vclock: a85hYGBgzGDKBVIsDBeawjKYEpnyWBm+x3Ud58sCAA==
etag: 3NOI4nZuDXlcn8NmrOr1Ra
last_modified: 2011-07-07 17:46:47 +0100
links:
data:
{"number"=>13, "street"=>"New Street"}
=> true

Put Object

Store an object at a {bucket,key} pair.

> put 'addresses', 'jane', '13 New Street'
=> true

Complex data types can also be passed, as well as a content type:

> put 'addresses', 'jane', {:number => 13, :street => 'New Street'}, 'application/json'
=> true

List Keys

Lists keys in the database:

> list
---
addresses:
- jane
friends:
- tim
 => true

Listing all keys will take a while, for speed pass names of bucket:

> list 'addresses'
---
addresses:
- jane

Contributing

  • Fork the project.
  • Make your feature addition or bug fix.
  • Add tests.
  • Send me a pull request. Bonus points for topic branches.

License


Riak Console by Luca Spiller is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Based on a work at github.com.
Permissions beyond the scope of this license may be available at https://github.com/lucaspiller/riak-console.

Previous:TennisBoard