Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
This video will demonstrate how to install and configure Qlik-CLI for SaaS editions of Qlik Sense.
Content:
get-command qlik
choco install qlik-cli
if ( -not (Test-Path $PROFILE) ) {
echo "" > $PROFILE
}
qlik completion ps > "./qlik_completion.ps1" # Create a file containing the powershell completion.
. ./qlik_completion.ps1 # Source the completion.
Advanced and additional instructions as seen in the video can be found at Qlik-CLI on Qlik.Dev. Begin with Get Started.
@Saranya_Durairaj Can you successfully browse to this directory? just copy and paste the following into the Run dialog, or do a search on your computer: %userprofile%\.qlik
@Saranya_Durairaj
Once you browse to the location mentioned above, open the file contexts.yml in notepad and you can add in your API Key manually. My file looks similar to the following:
current-context: myQlikServer.us.qlikcloud.com
contexts:
myQlikServer.us.qlikcloud.com:
headers:
Authorization: Bearer MySuperLongAPIKeyIsLocatedHere
server: https://myQlikServer.us.qlikcloud.com
Hi @nhoover,
I can able to navigate the path and update the sane which you mentioned in the previous comment. After that, I'm trying to use some examples but getting the "server URL not specified" error.
@Saranya_Durairaj I would validate that you modified the server correctly to match your tenant and try again, I feel you are very close to success! You may need to open a support ticket as I'm unable to help past this point.
current-context: SaranyaServer.us.qlikcloud.com
contexts:
SaranyaServer.us.qlikcloud.com:
headers:
Authorization: Bearer MySuperLongAPIKeyIsLocatedHere
server: https://SaranyaServer.us.qlikcloud.com
Hi @nhoover ,
I have successfully updated the API key in the context file, and it is functioning properly.. Now, I am trying to create the app, but I am getting an error message saying 'No such host'.
For reference,
Regards,
@Saranya_Durairaj I'm not familiar with this as I only use CLI for a limited scope. Did you get it functioning, was Qlik Support able to resolve?
I'm using qlik cli to upload qvs files to SaaS inside an Azure DevOps Pipeline.
I can run the command successfully from my local computer, no problem at all, but when I put the command into the Azure Pipeline I get an error:
piped input is not support for this command
The command I'm running is:
qlik data-file create --config context.yml --file test.qvs --name test.qvs
As I say, I can run it locally on my windows box, and I've tried both ubuntu and windows OS for the pipeline and get that same error.
Any ideas?