ahaydon / Qlik-Cli-Windows

Qlik-Cli for Windows
https://adamhaydon.uk/Qlik-Cli-Windows/
GNU General Public License v2.0
110 stars 51 forks source link

[Help Wanted] Is there a way to export the Qlik Load Script? #164

Closed aburnsy closed 2 years ago

aburnsy commented 2 years ago

We have roughly 300 apps in our cluster. We need to update some apps which are referencing older versions of scripts we use. I'm wondering is there a way to export all the load scripts to identify the apps we need to update.

ahaydon commented 2 years ago

The load script can only be accessed via the engine API using websocket, so this is not possible with Qlik-Cli for Windows, however you could use qlik-cli from qlik.dev. There is an example for how to set the script, and getting the script just requires replacing set with get in the command. https://qlik.dev/tutorials/get-started-with-qlik-cli/#add-a-load-script-to-the-app.

You will need to first get connected to the server:

qlik context create qse --server https://localhost --server-type windows
qlik context use qse

Then the command you would use would be as follows:

qlik app script get --app <appId>
aburnsy commented 2 years ago

Thanks Adam. I had thought that library worked with SaaS only - good to know