Get version of app

is there a way for users to find out the version number of an installed app?

I found the version of Nextcloud in the source code of the webpage, the version of the app unfortunately not.

Sorry, but I think such a function doesn’t exist yet. It might be worth to create a feature request in the server Github repository to address this.

Do you have access to the command line interface or FTP?

No, “normal” user with access only via browser and Windows-client

You can try to request the capabilities endpoint:

curl -X GET 'https://username:password@nextcloud.example.com/ocs/v2.php/cloud/capabilities?format=json' -H 'Accept: application/json' -H 'OCS-APIRequest: true' -H 'Content-Type: application/json;charset=utf-8'

Some apps like Deck expose their exact version there, but 1. not every app does it and 2. you might not get the complete result depending on your permissions.

The easiest way is to ask your provider :slight_smile:

1 Like

@stefan-niedermann thanks a lot for your help

Nextcloud-server without 2FA
With ocs I get the version of Nextcloud and the version of deck only
“deck”: {
“version”: “1.2.0-beta1”,
“canCreateBoards”
: true
}

Nextcloud-server with 2FA
With ocs I get the version of Nextcloud, but below “capabilities” only “bruteforce” and “theming”, both without versions

I am a bit surprised that even with the wrong user and wrong password
capabilities":{“bruteforce”:{“delay”:200}
is displayed

If a session has already been authenticated in another browser window, the authentication data will most likely be ignored and the data is being displayed. To be sure that the information is only provided using correct authentication data, you should run your test in a private session or a session with cleaned cookie data :wink:

I used the commandline in a terminal and there was no browser running
curl -X GET ‘https://FredFeuersteins:geheim@demo2.nextcloud.com/ocs/v2.php/cloud/capabilities?format=json’ -H ‘Accept: application/json’ -H ‘OCS-APIRequest: true’ -H ‘Content-Type: application/json;charset=utf-8’

and got

{
   "ocs":{
      "meta":{
         "status":"ok",
         "statuscode":200,
         "message":"OK"
      },
      "data":{
         "version":{
            "major":20,
            "minor":0,
            "micro":1,
            "string":"20.0.1",
            "edition":"",
            "extendedSupport":false
         },
        "capabilities":{
            "bruteforce":{
               "delay":800
            },
            "theming":{
               "name":"Nextcloud",
               "url":"https:\/\/nextcloud.com",
               "slogan":"a safe home for all your data",
               "color":"#0082c9",
               "color-text":"#ffffff",
               "color-element":"#0082c9",
               "color-element-bright":"#0082c9",
               "color-element-dark":"#0082c9",
               "logo":"https:\/\/demo2.nextcloud.com\/core\/img\/logo\/logo.svg?v=0",
               "background":"https:\/\/demo2.nextcloud.com\/core\/img\/background.png?v=0",
               "background-plain":false,
               "background-default":true,
               "logoheader":"https:\/\/demo2.nextcloud.com\/core\/img\/logo\/logo.svg?v=0",
               "favicon":"https:\/\/demo2.nextcloud.com\/core\/img\/logo\/logo.svg?v=0"
            }
         }
      }
   }
}