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

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s