Interactive command line shell for CouchDB
Project description
cdbcli
======
.. image:: https://img.shields.io/pypi/v/cdbcli.svg
:target: https://pypi.python.org/pypi/cdbcli
:alt: Latest PyPI version
.. image:: https://travis-ci.org/kevinjqiu/cdbcli.png
:target: https://travis-ci.org/kevinjqiu/cdbcli
:alt: Latest Travis CI build status
The interactive CLI for CouchDB
Usage
-----
This tool allows you to traverse a CouchDB database as if it were a file system. Familiar file system commands are supported, such as ``ls``, ``cd``, ``mkdir``, ``rm``, etc, while providing context-rich auto-completion.
Starting cdbcli
^^^^^^^^^^^^^^^
Refer to the Installation_ section for guide on how to install cdbcli.
Running cdbcli requires connection parameters to the underlying couchdb instance you want to connnect to.
.. code::
cdbcli --help
Usage: cdbcli [OPTIONS] [DATABASE]
Options:
-h, --host TEXT The host of the couchdb instance
--port TEXT The port of the coouchdb instance
-u, --username TEXT The username to connect as
-p, --password TEXT The password
-P, --askpass / --no-askpass Ask for password?
--tls / --no-tls Use TLS to connect to the couchdb instance?
--help Show this message and exit.
e.g., if you want to connect your couchdb instance at http://yourdomain:9999, you can issue the command::
cdbcli -h yourdomain --port 9999 -u admin -P
Specifying ``-P`` will prompt you for password. You can also use ``-p`` to specify password at the command line, but this is not recommended for sensitive passwords.
By default, ``cdbcli`` connects to the couchdb instance at http://localhost:5984.
You will be greeted by the cdbcli's splash screen::
___ ____ ____ ___ __ ____
/ __)( _ \( _ \ / __)( ) (_ _)
( (__ )(_) )) _ <( (__ )(__ _)(_
\___)(____/(____/ \___)(____)(____)
Welcome to cdbcli
CouchDB version: 1.5.0
Press <TAB> for command auto-completion
Press Ctrl+C or Ctrl+D or type 'exit' to exit
admin@yourdomain/>
``cd <database>``
^^^^^^^^^^^^^^^^^
Change database is achieved by using the ``cd`` command::
admin@yourdomain/> cd test
admin@yourdomain/test>
Use ``cd ..`` or ``cd /`` to go back to the root of the database::
admin@yourdomain/test> cd /
admin@yourdomain/>
Installation
------------
.. code::
pip install cdbcli
Contributing
------------
* Clone this repository.
* Make a Python virtualenv
* Install requirements: ``pip install -r requirements-test.txt``
* Install `docker<www.docker.com>`_ because the integration tests require it
* Run ``make start_couchdb``. This will start the testing couchdb instance using docker
* Run ``make test``
* Run ``make stop_couchdb`` to clean up
Licence
-------
Authors
-------
`cdbcli` was written by `Kevin J. Qiu <kevin@idempotent.ca>`_.
======
.. image:: https://img.shields.io/pypi/v/cdbcli.svg
:target: https://pypi.python.org/pypi/cdbcli
:alt: Latest PyPI version
.. image:: https://travis-ci.org/kevinjqiu/cdbcli.png
:target: https://travis-ci.org/kevinjqiu/cdbcli
:alt: Latest Travis CI build status
The interactive CLI for CouchDB
Usage
-----
This tool allows you to traverse a CouchDB database as if it were a file system. Familiar file system commands are supported, such as ``ls``, ``cd``, ``mkdir``, ``rm``, etc, while providing context-rich auto-completion.
Starting cdbcli
^^^^^^^^^^^^^^^
Refer to the Installation_ section for guide on how to install cdbcli.
Running cdbcli requires connection parameters to the underlying couchdb instance you want to connnect to.
.. code::
cdbcli --help
Usage: cdbcli [OPTIONS] [DATABASE]
Options:
-h, --host TEXT The host of the couchdb instance
--port TEXT The port of the coouchdb instance
-u, --username TEXT The username to connect as
-p, --password TEXT The password
-P, --askpass / --no-askpass Ask for password?
--tls / --no-tls Use TLS to connect to the couchdb instance?
--help Show this message and exit.
e.g., if you want to connect your couchdb instance at http://yourdomain:9999, you can issue the command::
cdbcli -h yourdomain --port 9999 -u admin -P
Specifying ``-P`` will prompt you for password. You can also use ``-p`` to specify password at the command line, but this is not recommended for sensitive passwords.
By default, ``cdbcli`` connects to the couchdb instance at http://localhost:5984.
You will be greeted by the cdbcli's splash screen::
___ ____ ____ ___ __ ____
/ __)( _ \( _ \ / __)( ) (_ _)
( (__ )(_) )) _ <( (__ )(__ _)(_
\___)(____/(____/ \___)(____)(____)
Welcome to cdbcli
CouchDB version: 1.5.0
Press <TAB> for command auto-completion
Press Ctrl+C or Ctrl+D or type 'exit' to exit
admin@yourdomain/>
``cd <database>``
^^^^^^^^^^^^^^^^^
Change database is achieved by using the ``cd`` command::
admin@yourdomain/> cd test
admin@yourdomain/test>
Use ``cd ..`` or ``cd /`` to go back to the root of the database::
admin@yourdomain/test> cd /
admin@yourdomain/>
Installation
------------
.. code::
pip install cdbcli
Contributing
------------
* Clone this repository.
* Make a Python virtualenv
* Install requirements: ``pip install -r requirements-test.txt``
* Install `docker<www.docker.com>`_ because the integration tests require it
* Run ``make start_couchdb``. This will start the testing couchdb instance using docker
* Run ``make test``
* Run ``make stop_couchdb`` to clean up
Licence
-------
Authors
-------
`cdbcli` was written by `Kevin J. Qiu <kevin@idempotent.ca>`_.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cdbcli-0.1.1.tar.gz
(8.7 kB
view details)
Built Distribution
cdbcli-0.1.1-py3-none-any.whl
(26.6 kB
view details)
File details
Details for the file cdbcli-0.1.1.tar.gz
.
File metadata
- Download URL: cdbcli-0.1.1.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 832ec10f50800e7f1bd695523e61cf786ef6bccb6e3cd117e903e5c4e117616d |
|
MD5 | 3138485c3718549f7af68c0c3daf6df4 |
|
BLAKE2b-256 | 197c2d624923531b101e5af988df735edb282f8934480af397b8dd35b5b8b9d4 |
File details
Details for the file cdbcli-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: cdbcli-0.1.1-py3-none-any.whl
- Upload date:
- Size: 26.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1387275eea95eac019fbdc56402303a6ef6dbaab59b790bf12d5098dfdc68463 |
|
MD5 | 85151798b9749a952f90915d08b10bcf |
|
BLAKE2b-256 | d8ecd29c59481e9c33f00b2048a07a9edf5e95a40cd83163eea0086df1a6f4b7 |