You can find this tool in the following locations, depending upon your platform. This tool can perform operations on an entire cluster, on a bucket shared across an entire cluster, or on a single node in a cluster. For instance, if you use this tool to create a data bucket, it will create a bucket that all nodes in the cluster have access to.
| Linux | /opt/couchbase/bin/couchbase-cli |
| Windows | C:\Program Files\Couchbase\Server\bin\couchbase-cli.exe |
| Mac OS X | /Applications/Couchbase Server.app/Contents/Resources/couchbase-core/bin/couchbase-cli |
This tool provides access to various management operations for Couchbase Server clusters, nodes and buckets. The basic usage format is:
couchbase-cli COMMAND [BUCKET_NAME] CLUSTER [OPTIONS]Where:
COMMAND is a command listed below.
CLUSTER is a cluster specification. You can
use either:
--cluster=HOST[:PORT]Or the shortened form:
-c HOST[:PORT]
OPTIONS is zero or more options.
You can also perform many of these same settings using the REST-API, see Chapter 8, Using the REST API.