How can we execute N1QL queries from an external file in cbq console? @geraldss , @lbertrand, @daschl
That feature is not yet available with the current version of cbq. Will be available in the next couchbase server release.
In addition to @manik’s answer – for now, you can use curl to talk to N1QL, and place those curl commands in a script.