Reputation: 2335
How can I find what version of CKAN I am running? Preferably programatically or via some machine readable way?
Any suggestions?
Upvotes: 13
Views: 9215
Reputation: 39343
If you want to know just the main version, I think the easiest way is just to put the mouse over the API link at the bottom of a CKAN web page and see in the status bar the documentation version that is linked:
The image above says that the CKAN server is running a 2.8
family. Note that you won't know the minor version.
To know the minor version, display the html source code with Ctrl-u
and see the meta tag on the top of the :
<meta name="generator" content="ckan 2.9.9" />
Upvotes: 0
Reputation: 179
In later versions (testing 2.8.3) it is {{url}}/api/3/action/status_show
Upvotes: 7
Reputation: 83
You can also rebuild ckan in the main directory inside the virtual environment in /src/ckan python setup.py [develop | install]
The output will have the version number
Upvotes: 0
Reputation: 4540
Older versions of CKAN had the version displayed on the footer of the page. Starting from CKAN 2.0, the version number is displayed in the source code with the following tag:
<meta name="generator" content="ckan 2.0.1" />
Or you can make this API call:
http://demo.ckan.org/api/util/status
{
ckan_version: "2.0.1",
site_url: "http://demo.ckan.org",
site_description: "Demo",
site_title: "CKAN Demo",
error_emails_to: "root",
locale_default: "en",
extensions: [
"stats",
"social",
"demo",
"datastore",
"datastorer",
"resource_proxy",
"recline_preview",
"json_preview",
"pdf_preview",
"repo_info",
"spatial_metadata",
"spatial_query",
"geojson_preview"
]
}
Upvotes: 20