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

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

主站蜘蛛池模板: 临武县| 崇左市| 呼图壁县| 阿巴嘎旗| 都兰县| 盐亭县| 赣榆县| 蒙自县| 五大连池市| 胶州市| 沧源| 静安区| 茂名市| 麻栗坡县| 岢岚县| 漳平市| 龙州县| 大足县| 乌什县| 乾安县| 沂源县| 周宁县| 惠来县| 南投市| 巴彦淖尔市| 雷州市| 自治县| 喀什市| 荥阳市| 保靖县| 桑植县| 惠来县| 新绛县| 石林| 互助| 加查县| 彭山县| 临澧县| 泗阳县| 额尔古纳市| 斗六市|