How to use command line query (cbq?) for remote (not local) servers

I have searched, but cannot find documentation for connecting to remote server to make queries using command line.

Please advise

cbq -u user -p password -e url

checkout cbq --help

 -e string
    	 Shorthand for  -engine (default "http://localhost:8091/,http://[::1]:8091")
  -engine string
    	 URL to the query service/cluster.
    			 Default : http://localhost:8091
    			 For example : ./cbq -e couchbase://
    				       ./cbq -e
    	 (default "http://localhost:8091/,http://[::1]:8091")
1 Like