Unable to get version of couchbase-server using CLI

Annoyingly, I cannot get the current couchbase-server version using CLI, for example;

$ couchbase-server -v
getopt: invalid option -- 'v'
$ couchbase-server --version
getopt: unrecognized option '--version'
$ couchbase-server -h
getopt: invalid option -- 'h'

Retrieving the version number for a piece of software should be a trivial thing, and is supported in almost every other CLI tool, can we please add support for this?

Thank you

I’ve filed MB-14656 on your behalf.

Beautiful, thank you. I’ll post future comments that ticket.

The fix is merged and will be part of the next major release of Couchbase.