Cdbcli

From wikinotes

Install

sudo pip install cdbcli


Usage

cdbcli is super simple. It's litterally allows you to interact with your database as if it were a unix filesystem. cd, vim, touch, ls, ... are all there.

env EDITOR=vim cdbcli          \
  -h 127.0.0.1  \ 
  -u USER       \
  -p password

If you plan to edit the JSON files using cdbcli, you'll need to make sure that your EDITOR environment variable is appropriately set. vi,vim,emacs, all seem to call the command indicated by $EDITOR.

mkdir test_database
cd  test_database
vim test_document     ##... edit file
cat test_document
ls
..