Couchbase cli examples

 

Couchbase Server, originally known as Membase, is an open-source, distributed (shared-nothing architecture) NoSQL document-oriented database that is optimized for interactive applications.

By default couchbase-cli command is located at /opt/couchbase/bin/couchbase-cli.

Couchbase-cli examples:

To list servers:

$ /opt/couchbase/bin/couchbase-cli server-list -c hostname:8091 -u username -p password

To list buckets:

$ /opt/couchbase/bin/couchbase-cli bucket-list -c hostname:8091 -u username -p password

To get server info:

$ /opt/couchbase/bin/couchbase-cli server-info -c hostname:8091 -u username -p password

couchbase-cli help:

$ /opt/couchbase/bin/couchbase-cli help