Edit on GitHub
Couchbase Server command-line interface (CLI) tools are provided to manage and monitor clusters, servers, vBuckets, XDCR, and so on.
By default, the CLI tools are installed into the following locations on each platform:
/opt/couchbase/bin, /opt/couchbase/bin/install, and /opt/couchbase/bin/tools
C:\Program Files\couchbase\server\bin, C:\Program Files\couchbase\server\bin\install, and C:\Program Files\couchbase\server\bin\tools.
Mac OS X
The command-line interface provides commands to start, stop, and report status for log collection. You can collect diagnostics through the command-line interface by using either the
couchbase-cli couchbase-cli tool or the cbcollect_info cbcollect_info tool.
cbbackupmgr cbbackupmgr is a tool for backing up and restoring a Couchbase cluster.
couchbase-cli The couchbase-cli tool is used to perform operations both on single nodes or on entire clusters.
cbanalyze-core The cbanalyze-core tool is used to parse and analyze core dump data.
cbbackup The cbbackup tool creates a copy of data from an entire running cluster, an entire bucket, a single node, or a single bucket on a single functioning node.
cbbackupwrapper and cbrestorewrapper Two new tools are included with Couchbase Server Enterprise Edition that improve throughput for the database backup process: cbbackupwrapper and cbrestorewrapper.
cbcollect_info The cbcollect_info tool provides detailed statistics for a specific node.
cbdocloader The cbdocloader tool is used to load a group of JSON documents in a given directory or in a single .zip file into a Couchbase bucket.
cbepctl The cbepctl tool is used to control vBucket states, configuration, and memory and disk persistence behavior.
cbq The cbq tool enables you to run N1QL queries from the command line.
cbrestore The cbrestore tool restores data from a file to an entire cluster or a single bucket in the cluster.
cbstats Retrieve lower level statistics with the cbstats utility, which provides deep insight into what occurs within a cluster.
cbtransfer Transfers data between clusters or from files.
cbworkloadgen Generates random data and performs reads and writes.
mctimings The mctimings tool displays end-to-end timing information for all operations. mctimings displays all timings collected since the last time the statistics were reset or memcached restarted.