qlik-cli - Get started with examples

If you've already installed qlik-cli and configured a context, you can try it out with one of the following common use cases.

List and switch between contexts

If you have multiple users or tenants, you can list and switch between them through the contexts.

Listing the configured contexts

qlik context ls

Setting the context that should be used.

qlik context use <context-name>

Only one context can be configured as the current context.

Note

The context to be used for a single command can also be overriden using the --context flag.

Renaming and updating a context

If you want to rename an existing context

qlik context rename <old-context-name> <new-context-name>

It is also possible to update secrets in the context using the qlik context update command. For example if you need to update the API-key of a context.

复制代码

qlik context update <context-name> --api-key <my-api-key>

Import a local app

Import a locally stored app to Qlik Cloud.

qlik app import -f the_app.qvf

More information about the app resource can be found in qlik app --help.

Search for an app by name in Qlik Cloud.

qlik item ls --resourceType app --name "app name"

More information about the app resource can be found in qlik item --help.

Create a managed space and assign users

First you create the space and copy the returned ID.

qlik space create --name "Demo Space" --type managed --quiet

Then you assign a user with consumer, contributor, and publisher access by supplying the ID returned by the first call.

qlik space assignment create --spaceId=<ID> --type user --roles consumer,contributor,publisher --assigneeId=<userid> -q

More information about the app resource can be found in qlik space --help.

List failed reloads

To list your reloads for an app you enter:

复制代码

qlik reload ls --appId=<appId>

Since this list can be large, you may wish to employ some type of sorting or selection tool. jq is one such tool and can be used to filter out all failed reloads from the list.

qlik reload ls --appId=<appId> | jq '.[] | select(.status == "FAILED")'

More information about the app resource can be found in qlik reload --help.

Analyze an app

With qlik app meta, you get an overview of the app with information about its fields, tables, and associations.

复制代码

qlik app meta --app <appid/app_name>

You can drill down even further and evaluate dimensions or measures.

复制代码

qlik app eval --app <appid/app_name> 'Avg(Revenue)' by 'Country'

More information about the app resource can be found in qlik app eval --help.

Limit the output to only return the id

Most commands return the full API response as json. If you are only interested in the created or requested resource id, you can add the quiet flag --quiet to suppress all but the ID output.

相关推荐
WangWei_CM2 小时前
跨位数进程的映像、命令行与环境块读取
windows
男孩李2 小时前
浅谈Linux的last命令
java·linux·服务器
夫唯不争,故无尤也2 小时前
Ubuntu阿里云服务器一键安装RustDesk指南
服务器·ubuntu·阿里云
Web极客码2 小时前
如何在WordPress中添加动态内容
服务器·前端·wordpress
星恒随风3 小时前
Linux 权限详解:从 rwx、chmod 到 umask、目录权限与粘滞位
linux·运维·服务器·笔记·学习
阳光九叶草LXGZXJ3 小时前
达梦数据库-报错-12-[-7184]:对象定义[XXX]被修改,版本检查失败
linux·运维·服务器·数据库·sql·学习
JXCY13S5053 小时前
集群及lvs基础知识
运维·服务器
j7~4 小时前
【Linux】二十六.线程篇三《Linux多线程编程:线程控制、线程ID以及进程地址空间分布、线程局部存储__thread以及clone系统调用》---详解
linux·运维·服务器·开发语言·c++·多线程编辑·线程的控制
PC2005-cloud12 小时前
博文已索引但不展示:一次 Bing SEO 问题排查记录
服务器·人工智能