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.

相关推荐
3Q工具箱 - BraggTroy6 分钟前
Python + PyInstaller 实战:从零打造 10 个 Windows 桌面小工具(附全部踩坑记录与核心代码)
开发语言·windows·python
linnux领域9 分钟前
eNSP 交换机与电脑不在一个网段?用一台 Windows 双网卡做路由,把实验环境彻底打通
windows·华为·电脑·ensp·静态路由·网络实验·ensp模拟器
AIGC大时代23 分钟前
OpenAI Agents SDK 工程笔记:tool 调用循环、max_turns 与生产禁区
服务器·数据库·笔记·tool·max_turns·functiontool·生产禁区
djjjx.40 分钟前
Linux工具篇 (三):make与Makefile
linux·服务器·makefile·make
时代的凡人1 小时前
【无标题】科样KSMART服务器(Kohyoung AOI的集中数据Hub)访问方案
服务器
挂科边缘1 小时前
Android Studio 保姆级安装教程,Windows 电脑上安装 Android Studio
android·windows·android studio
团子股股东峥哥1 小时前
day36-RHEL-管理基本存储
linux·运维·服务器
荣合技术服务1 小时前
山西太原服务器集群服务商——荣合科算
服务器·超算集群·荣合科算
TechExplorer3651 小时前
Win11 必要禁用的服务以释放进程内存
windows
云栖梦泽1 小时前
网络设备驱动(3)
linux·运维·服务器·网络·嵌入式硬件