7
votes

I have a server running couchdb, and I would like to know what version I am running. I know it is 1.2.0, but I want to know 1.2.0-X. I have looked through some of the source files for this info, but I can't seem to find it. Is there any way I can find this information?

Thanks!

2
What does you mean by -X? I'm pretty sure releases are done on a simple "x.y.z" basis. - Dominic Barnes

2 Answers

7
votes

You can just query http://yourserver:5984/ which should return the result.

Quoting from the API Docs

Request:

GET / HTTP/1.1
Accept: application/json
Host: localhost:5984

Response:

HTTP/1.1 200 OK
Cache-Control: must-revalidate
Content-Length: 179
Content-Type: application/json
Date: Sat, 10 Aug 2013 06:33:33 GMT
Server: CouchDB (Erlang/OTP)

{
    "couchdb": "Welcome",
    "uuid": "85fb71bf700c17267fef77535820e371",
    "vendor": {
        "name": "The Apache Software Foundation",
        "version": "1.3.1"
    },
    "version": "1.3.1"
}
6
votes

If you can make authenticated requests, you can directly get the version number by using the api "_config" handler:

http://yourserver:5984/_config/vendor/version