官术网_书友最值得收藏!

  • 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.

主站蜘蛛池模板: 苗栗市| 富裕县| 日照市| 耒阳市| 荔波县| 浏阳市| 朝阳县| 南漳县| 泾源县| 宜兴市| 长沙市| 中江县| 长治市| 筠连县| 溧水县| 辉南县| 江陵县| 酒泉市| 平定县| 米泉市| 南华县| 长治市| 和硕县| 盖州市| 颍上县| 虹口区| 沂源县| 济南市| 克东县| 神池县| 龙海市| 长汀县| 黔西| 吴忠市| 卫辉市| 吉林省| 广河县| 宝兴县| 会宁县| 龙山县| 祁门县|