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

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.

主站蜘蛛池模板: 西林县| 犍为县| 高安市| 巴里| 普陀区| 荔波县| 阿合奇县| 深泽县| 宜良县| 称多县| 延川县| 新竹市| 泽州县| 渝中区| 沙湾县| 安乡县| 弥勒县| 岳西县| 额济纳旗| 莱芜市| 五常市| 阿鲁科尔沁旗| 晋宁县| 庆城县| 永年县| 兴城市| 铁岭市| 喀喇沁旗| 侯马市| 深水埗区| 富民县| 宜丰县| 四平市| 山丹县| 昭觉县| 邵武市| 宽城| 全南县| 类乌齐县| 万年县| 万源市|