- Learning Couchbase
- Henry Potsangbam
- 152字
- 2021-07-30 10:25:03
The command line interface
Couchbase also provides the CLI to interact with the Couchbase cluster. You can perform almost all the functionalities that were performed using the web console by using CLI. Since most administrative activities can be performed using the web UI, it won't be explained here due to space constraints. Let me provide a sample command for better understanding. However, you can refer to the Couchbase documentation for details.
You can find all CLI tools in the installation folder. In our case, the installation folder is at C:\Program Files\Couchbase\Server\bin
. For Linux, you can find this at /opt/couchbase/bin
path.
In order to determine all the buckets in a cluster, you can execute the following command:
couchbase-cli bucket-list -c localhost:8091 -u Administrator -p root123
This is what the output looks like:

The couchbase-cli
command accepts the bucket-list
parameters to view all buckets in the cluster which is specified with the -c
parameter.