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.

相关推荐
星间都市山脉3 小时前
RecoveryUI 圆角屏安全边距配置及代码调用链
android·java·linux·windows·ubuntu
泡海椒3 小时前
JQuick-Excel JQuickRow 数据准备实战:JObjectConverter、JQuickRow.toRows 与 XML 导出链路
xml·windows·excel
wdfk_prog4 小时前
Wi-Fi Direct 源码分析(09):从 P2P_CONNECT 到 GO Negotiation 完成
运维·服务器·ubuntu·golang·asp.net·p2p·wifi-direct
打工仔折腾 AI4 小时前
多台服务器日志分散难查?用Promtail+Loki+Grafana搭建集中检索平台
服务器·人工智能·后端·python·性能优化·django·grafana
王维同学4 小时前
ETW监控-KswordARK功能展示
c++·windows·安全
一条破秋裤14 小时前
Linux 共享内存通信:POSIX 共享内存与 mmap
linux·运维·服务器
贵州山魈羡民14 小时前
【玩转手机】通过 Podroid 上的 Alpine 部署 1Panel,把微型服务器装进口袋
运维·服务器
程序员-Benothing16 小时前
Shell输入输出详解:read、echo、printf、颜色输出
linux·运维·服务器
FPGA小徐16 小时前
从 NEMU 到 AbstractMachine:程序、运行时环境与 AM 完全解析
linux·运维·服务器
HwJack2017 小时前
【共创稿事节】HarmonyOS 7空间排布原则:视锥、舒适区与可达性
microsoft·华为·harmonyos