I need to script out the first-time setup of data in a Couchbase instance. I was trying to do the following steps:
-
cbimport
a csv file -
cbq --script
to create a view -
cbq --script
to create a primary index
But I don’t see any way to do #2. I can’t find a CREATE VIEW command. Is there such a thing? I do I have to use the console?