cbq

The cbq tool enables you to run N1QL queries from the command line.

Example

The basic syntax is:

cbq> create primary index on `beer-sample`;
cbq> select * from `beer-sample` limit 1;

For detailed information, see cbq: The Command Line Shell for N1QL.