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.

相关推荐
江南风月14 分钟前
3分钟快速上手日志审计系统 WGLOG v2.2 更新了什么
运维·服务器·网络
Dawn-bit1 小时前
Linux网络进阶:TCP三次握手和四次挥手与TCP连接状态
linux·服务器·网络·tcp/ip·云计算·智能路由器
旗开得胜马到成功1 小时前
可信备份技术解析:中科热备如何防范备份数据被攻击
运维·服务器
TheBestRucy2 小时前
Python 九阳神功:从零筑基到线程飞升
服务器·开发语言·网络·人工智能·python
Android系统攻城狮3 小时前
Linux PipeWire深度解析之pw_stream_new调用流程与实战(七十八)
linux·运维·服务器·音频进阶·pipewire音频实战进阶
weipt4 小时前
从ollama到llama.cpp
linux·服务器·llama
s_w.h5 小时前
【 计网 】计算机网络基础
服务器·计算机网络
小飞侠在吗6 小时前
Windows 下 Nginx 访问 127.0.0.1 报 50x 错误:根因是路径里 \t 被当成 Tab
运维·windows·nginx
怪侠_岭南一只猿7 小时前
[简单理解]小龙虾是怎么一回事?
运维·服务器·ai
海兰7 小时前
【应用】Wastnet 框架的 SSE (Server-Sent Events)从协议原理到实践指南
运维·服务器·人工智能