Skip to content

Creates thumbnail images based on sheets in Qlik Sense applications

License

Notifications You must be signed in to change notification settings

mountaindude/butler-sheet-icons

 
 

Repository files navigation

Automatically create Qlik Sense sheet thumbnail images

A cross platform, command line tool (plus Docker!) for creating sheet thumbnails based on the actual layout of sheets in Qlik Sense apps.

Works on both Qlik Sense Cloud apps and Qlik Sense Enterprise on Windows (QSEoW) apps.


Butler Sheet Icons ("BSI") can create sheet thumbnail icons for a single app or many - in both Qlik Sense Cloud and client-managed Qlik Sense Enterprise on Windows (QSEoW).
It can also remove sheet icons from Sense apps if needed.

Multi-app support is easy: Use the QMC (for QSEoW) to tag the apps that should be updated, or add the apps to a collection (Qlik Sense Cloud).
Then run Butler Sheet Icons and all apps will get new sheet icons automatically!

Are you the impatient kind and just want to try it out?
No worries, here's what you need for Qlik Sense Cloud:

  1. Download the binary you need (Windows, macOS, Docker).
  2. Create an API key for Qlik Sense Cloud.
  3. Make sure you know your Qlik Sense Cloud tenant URL, user ID, password and ID of the app to update.
    1. The tenant URL can be specified with or without the https:// prefix.
  4. Run Butler Sheet Icons with the options below (adapt as needed).
  5. 🎉😎 Sit back and enjoy not having to manually screen shot and process those 10 sheets each in 50 different apps...

Butler Sheet Icons tries to offer sane defaults, making the most basic use cases as simple as possible.
For example, updating sheets in a QS Cloud app can be as simple as (running BSI on Windows):

butler-sheet-icons.exe qscloud create-sheet-icons `
  --tenanturl <your-tenant> `
  --apikey <your-key> `
  --logonuserid <your-user-id> `
  --logonpwd <your-passowrd> `
  --appid <app id>

Similarly, removing all sheet icons from a QS Cloud app can be done with (again, on Windows):

butler-sheet-icons.exe qscloud remove-sheet-icons `
  --tenanturl <your-tenant> `
  --apikey <your-key> `
  --appid <app id>

Source Build status Docker image build Project Status: Active – The project has reached a stable, usable state and is being actively developed.


Butler Sheet Icons is an open source project sponsored by Ptarmigan Labs.
At ptarmiganlabs.com you will find articles about how the various open source Butler tools can help you get the most out of Qlik Sense.

For support and services relating to the Butler family of tools or Qlik Sense projects in general, please contact info -at- ptarmiganlanbs -dot- com.

Or sign up to the newsletter to get the latest Qlik Sense superpower updates straight to your inbox!


Table of contents


Demo

Here a Qlik Sense Cloud app is updated by running (a slighly older version of) Butler Sheet Icons on a macOS laptop:

Running Butler Sheet Icons on macOS

Introduction

The basics

  • Qlik Sense applications contains zero or more sheets.
  • Each sheet contains various kind of charts, KPIs, texts or other visualisations.
  • A sheet icon/thumbnail image can be added to each sheet in a Sense app.
    This image provides visual guidance and makes it easier for users to find the sheet they are looking for within a Sense app.

There are various approaches when it comes to creating useful sheet icons:

  1. Use random images you've found somewhere online.
    Usually not recommended, at least not if you want a consistent, professional looking Sense application.
  2. Use animated GIFs.
    If it's a good idea? You decide... examples can be found in the blog post "Animated GIF horror for Qlik Sense".
  3. Use a professional icon/image library such as Font Awesome.
    This gives you a nice, consistent look across all sheet icons. Converting the images to a suitable format and uploading them to Qlik Sense can be a challenge though, here tools such as Butler Icon Upload can greatly simplify things.
  4. Create thumbnail images that are miniatures of the actual sheet layout.
    The idea here is to take screen shots of all app sheets and then use these screenshots as thumbnail images for each sheet.

The goal of the Butler Sheet Icons project is to automate option 4 above.

Specifically:

  • The tool is cross platform and runs on Windows, MacOS, Linux and as a Docker container.
  • Stand-alone, download-and-use binaries for Windows, macOS and Linux are available.
    • The macOS binary is notarized by Apple.
    • The Windows binary is signed with a commercial signing certificate from Certum.
  • Works on both Qlik Sense Cloud and client-managed Qlik Sense Enterprise on Windows. Qlik Sense Desktop not supported.
  • A single command will create thumbnail images, upload them to Qlik Sense and assign them as sheet icons to sheets in the Sense app(s).

By using for example Powershell (which runs on Windows, macOS and Linux these days!) and qlik-cli (which is an official, supported tool from Qlik) it's possible to automatically create sheet thumbnails for all sheets in all apps in a Qlik Sense environment!

Use cases for Butler Sheet Icons include

  • Manual, one-off updates of a Sense app's sheet icons
  • Bulk update of all sheet icons in many apps
  • Update sheet icons automatically as part of a CI/CD pipeline

How does Butler Sheet Icons work?

The idea is simply to more or less mimic the steps a human would take to create sheet thumbnails, with some steps replaced with calls to the Sense APIs.

  • Butler Sheet Icons uses its own, embedded web browser to log into Qlik Sense.
  • Qlik keeps developing and refining the Sense web front-end. This means that different Sense versions may work slightly differently behind what may seem like identical web user interfaces. Butler Sheet Icons however needs to adapt to this.
    • The solution is to specify which Sense version you will connect to. This is done using the --sense-version command line parameter.
    • The above is only applicable to client-managed Qlik Sense, a.k.a. Qlike Sense Enterprise on Windows, QSEoW.
  • For the first app that should get new sheet thumbnails...
    • Use Sense APIs to determine which sheets exist in the app.
    • Move to the app's first sheet using the browser.
      • Wait for sheet to load.
      • Take screen shot of the desired part of the sheet.
      • Resize the screen shot to the correct size and aspect ratio.
      • Save the thumbnail image to disk.
    • Repeat previous step for each sheet in the app (public and private sheet are both processed).
    • Update sheet images.
      • Use Sense APIs to upload the thumbnail images to Sense (QSEoW or QS Cloud).
      • Assign the images to the correct sheet in the correct app.
  • Repeat previous step for each app that should be processed.
    • Apps can be specified in several ways
      • By app ID (both QS Cloud and QSEoW).
      • By tag (QSEoW). All apps having the specified tag will be updated.
      • By collection (QS Cloud). All apps part of the specified collection will be updated.
  • It's possible to specify that some sheets should not get new sheet icons. Exclude sheets can be specified using
    • Sheet position in the app. For example sheet 3, 7 and 8.
    • Sheet title. For example sheet "Intro" and "Definitions".
    • Sheet status, i.e. whether the sheet is public, published or private.
    • All sheets tagged with a specific tag. Only available on client-managed Qlik Sense Enterprise as tags are not available in Qlik Cloud.

Sample screen shots

Using Butler Sheet Icons on MacOS, updating shet icons in a client-managed Qlik Sense Enterprise on Windows app can look like below.
Environment variables are used to store most parameters, which makes it easier to run the command without having to remember all the parameter values.

The command below could actually be slimmed down a bit given that many of the options have good default values, but it's shown here with a full set of parameters to make it easier to understand what's going on.

./butler-sheet-icons qseow create-sheet-thumbnails \
  --loglevel
  --host $BSI_HOST \
  --appid $BSI_APPID \
  --apiuserdir 'Internal' \
  --apiuserid sa_api \
  --logonuserdir $BSI_LOGON_USER_DIR \
  --logonuserid $BSI_LOGON_USER_ID \
  --logonpwd $BSI_LOGON_PWD \
  --contentlibrary $BSI_CONTENT_LIBRARY \
  --pagewait 5 \
  --secure true \
  --imagedir ./img \
  --certfile $BSI_CERT_FILE \
  --certkeyfile $BSI_CERT_KEY_FILE \
  --includesheetpart 1 \
  --headless true \
  --exclude-sheet-tag '❌excludeSheetThumbnailUpdate' \
  --exclude-sheet-title 'Sheet 5' 'Debug sheet' \
  --exclude-sheet-number 1 2 \
  --exclude-sheet-status private \
  --sense-version 2024-Feb

Run Butler Sheet Icons

Same as above, running in PowerShell on Windows 10.
In this case (on Windows) we need to add the --prefix form parameter, otherwise BSI will try to use Windows authentication to log in to the Sense server.
The --prefix form parameter tells BSI to use a Qlik Sense virtual proxy that uses form based authentication.

Run Butler Sheet Icons

App overview before running Butler Sheet Icons: Qlik Sense app overview

App overview showing the sheet thumbnails generated by Butler Sheet Icons:

Qlik Sense app overview

Upgrading from previous versions

From 2.x to 3.0

  • The --sense-version parameter is a new mandatory parameter. Available options are "pre-2022-Nov", "2022-Nov", "2023-Feb", "2023-May" etc.
    The list of allowed values is available in the BSI help that's shown by running .\butler-sheet-icons.exe qseow create-sheet-thumbnails --help (on Windows/PowerShell in this case).

Install

Most common scenario: Stand-alone tool

Butler Sheet Icons does not need to be installed.

It is a standalone, cross-platform executable that is just downloaded and executed.

The latest version is always available from the download page. Make sure to check for new versions (and star the GitHub repositry and subscribe to updates!) - new features are added and security updates applied.

The sometimes scenario: Docker container

The Docker image of BSI is intended to be used on Linux, macOS or in a Kubernetes cluster.

It may be possible to use the image also on Windows, at least when using the Linux subsystem that's available these days. This has however not been tested - your mileage may vary.

Least common scenario: Node.js application

While you don't have to install Butler Sheet Icons (BSI), it is in fact possible if there is a need to. For example, if you want to develop the tool further or in other ways change it, you will need to do a proper Node.js installation.

BSI is written in Node.js and can as such be installed like any other Node.js application.

This scenario is for advanced users that already know the ins and outs of running Node.js applications. Only brief instructions are therefore given here.

On a high level the steps are:

  1. Install Node.js if not already installed.
    BSI is always tested against the most recent LTS version of Node.js, but any reasonably recent version is likely to work.
  2. Download source code for the desired BSI version (latest stable version recommended!) from the download page.
    1. Specifically - do not use the main branch in the GitHub repository. It does not necessarily reflect the latest and greatest version of the code.
  3. Extract the downloaded zip file into suitable location (for example d:\tools\butler-sheet-icons on a Windows Server, then go to the src directory.
  4. Run npm install to download and install all dependencies.
  5. Start BSI with node butler-sheet-icons.js <options>.

Configuration

QS Cloud

To use Butler Sheet Icons with QS Cloud you must first set some things up:

Create API key

Butler Sheet Icons accesses the QS Cloud APIs to get get information about the apps that should be updated. This access assumes an API token has been created.

There is a good tutorial on qlik.dev that describes how to create API keys.

Client-managed QSEoW

Certificates

When using Butler Sheet Icons (BSI) with QSEoW you must first export certificates from the QMC. BSI will use those certificates to authenticate with the QSEoW APIs.

Instructions for exporting the certificates are available on Qlik's help pages.

Once you have the client.pem and client_key.pem files you should store them some place where BSI can access them. The --certfile and --certkeyfile options are used to tell BSI where the files are stored.

The default location (which will be used if --certfile or --certkeyfile are not specified) where BSI will look for the certificates is in a directory called cert directly under the directory in which BSI was started.

Using PowerShell:

PS C:\tools\butler-sheet-icons-butler-sheet-icons> dir

    Directory: C:\tools\butler-sheet-icons-butler-sheet-icons


Mode                 LastWriteTime         Length  Name
----                 -------------         ------  ----
d-----        13/03/2022     14:44                 cert
d-----        14/03/2022     12:45      121249744  butler-sheet-icons.exe


PS C:\tools\butler-sheet-icons-butler-sheet-icons>
PS C:\tools\butler-sheet-icons-butler-sheet-icons> dir cert

    Directory: C:\tools\butler-sheet-icons-butler-sheet-icons\cert


Mode                LastWriteTime         Length Name
----                -------------         ------ ----
-a----       07/03/2021     12:41           1170 client.pem
-a----       07/03/2021     12:41           1706 client_key.pem


PS C:\tools\butler-sheet-icons-butler-sheet-icons>

Content libraries

Butler Sheet Icons (BSI) will create image thumbnails for all sheets in a QSEoW application, then upload those images to a Sense content library.

That content library must exist before Butler Sheet Icons is executed!!

If not told otherwise by means of the --contentlibrary option, BSI will try to upload the images to a content library called "Butler sheet thumbnails".

Concepts

Concepts shared between QS Cloud and client-managed QS

Logging

Logging is controlled by the --loglevel option.
--log-level is an alias for --loglevel.

Valid values are (in order of increasing verbosity): error, warning, info, verbose, debug, silly.

When using log level silly all websocket communication to/from the Sense server will be logged to the console.
This will give you very detailed logging, but this can be useful when investigating bugs or other issues.

Default logging level is info.

Hidden sheets never updated

If a sheet is hidden in a Qlik Sense app, Butler Sheet Icons will not update the sheet's thumbnail image.

In QSEoW it is possible to hide sheets by using the "Hide sheet" option in the sheet's properties, wheres this is currently not possible in QS Cloud.
Still, Butler Sheet Icons handles hidden sheets the same way in both QSEoW and QS Cloud.

Which part of each sheet to use as thumbnail

A sheet in a standard Qlik Sense application consists of several parts.
Starting at the bottom of the screen we have

  1. The main part of the sheet. This is where tables, charts etc are shown.
  2. A sheet title.
  3. A selection bar. Shows what selections are currently made in the app.
  4. A menu bar. Here we find the main menu to the left, the app name, a drop-down menu showing all sheets etc.

Butler Sheet Icons lets you control which part of each sheet will be used as the thumbnail for that sheet.

The parameter --includesheetpart is used to control this.
The allowed values are:

1: The main sheet area only. I.e. no sheet title, selection bar or menu bar.
2: Same as 1 but with sheet title added.
3: Same as 2 but with selection bar added.
4: Same as 3 but with menu bar added, i.e. the entire page

Looking at a sheet in client-managed QS we have:

Using different parts of Sense sheet's as thumbnails

--includesheetpart is an optional parameter with a default value of 1.

Excluding sheets

  • The --exclude-sheet-number, --exclude-sheet-title and --exclude-sheet-status options are available for both QS Cloud apps and client-managed QS apps.
  • The --exclude-sheet-tag option is only available for client-managed QS, as there is no way to tag individual sheets in QS Cloud.

--exclude-sheet-number, --exclude-sheet-title and --exclude-sheet-status options all take one or more parameters:

--exclude-sheet-number 3 7
--exclude-sheet-title Intro "Metrics dfinitions" Help
--exclude-sheet-status published private

Note above how option parameters (in this case sheet titles) with spaces must be enclosed in double quotes.

There can be various reasons why you want to exclude sheets from getting new icons.

One scenario could be that some sheets have special roles in apps, for example providing help/support info or giving an overview over the entire app.
Another scenario is that a company have standardised on a fixed format first sheet in each app and want that sheet's icon to be the same everywhere (i.e. not be a miniature of what's actually shown on that sheet).

On client-managed Qlik Sense Enterprise there is an additional option too: --exclude-sheet-tag.

Follow these steps to use that option:

  1. Create a tag in the QMC. For example ❌excludeSheetThumbnailUpdate. Emojis can be used in Qlik Sense tags - quite useful!
  2. Use the QMC's App Objects section to tag the sheets that should not get new sheet icons, using that new tag.
  3. When starting Butler Sheet Icons you should pass in the option --exclude-sheet-tag "❌excludeSheetThumbnailUpdate".

Tagged sheets will be excluded from getting new sheet icons.

Excluding sheets based on the sheet's status

The --exclude-sheet-status is available for both QSEoW and QS Cloud, but works slightly differently between the two.

  • For QS Cloud:
    • Any sheet icon (private, published and public sheets) belonging to unpublished apps cam be updated by Butler Sheet Icons.
    • Only icons associated with private sheets can be updated in published apps.
  • For QSEoW:
    • All sheet icons for all sheets in both unpublished and published apps can be updated by Butler Sheet Icons.

The following table shows which sheets can be updated by Butler Sheet Icons:

QS Cloud QSEoW
Published Private Public
Published
Private
Unpublished Public
Published
Private
Public
Published
Private

For example, if updating a published app in QS Cloud, the --exclude-sheet-status public published option should be used to exclude public and public sheets from getting new sheet icons. Failing to do so will result in an error message:

 Access denied when trying to update public or published sheet icons in QS Cloud

Screen shots taken by Butler Sheet Icons

Image files are created (=screen shots are taken)

  • Login page before user credentials have been entered: loginpage-1.png
  • Login page after user credentials have been entered: loginpage-2.png
  • App overview before thumbnails have been updated: overview-1.png
  • Each sheet in all apps that are processed.
    • Separate directories for QS Cloud and QSEoW screen shots.
    • Within those separate directories, each app has its own subdirectory.

Example:

img
├── cloud
│   ├── 07ac6467-16b6-4964-a08c-d2be46988fb8
│   │   ├── loginpage-1.png
│   │   ├── loginpage-2.png
│   │   ├── overview-1.png
│   │   ├── thumbnail-1.png
│   │   ├── thumbnail-2.png
│   │   ├── thumbnail-3.png
│   │   └── thumbnail-4.png
│   └── 712cdef6-99fb-43c1-97a3-177a7e5766a1
│       ├── loginpage-1.png
│       ├── loginpage-2.png
│       ├── overview-1.png
│       ├── thumbnail-1.png
│       ├── thumbnail-2.png
│       ├── thumbnail-3.png
│       └── thumbnail-4.png
└── qseow
    └── c840670c-7178-4a5e-8409-ba2da69127e2
        ├── loginpage-1.png
        ├── loginpage-2.png
        ├── overview-1.png
        ├── thumbnail-c840670c-7178-4a5e-8409-ba2da69127e2-1.png
        └── thumbnail-c840670c-7178-4a5e-8409-ba2da69127e2-2.png

Headless browser

The --headless takes either true or false as a value (true is default).

Running "headless" means the browser is not visible on screen. It's running in the background, but isn't visible. Running headless is the normal way to use Butler Sheet Icons, but showing the embedded browser (i.e. using --headless false) can be useful to debug issues. Being able to see what happens on-screen when BSI is logging into Qlik Sense or trying to create screen shots can be very useful when trying to understand what's going on.

Downloading a browser

When running Butler Sheet Icons for the first time, a web browser needs to be downloaded.
If not instructed otherwise, Butler Sheet Icons will download and install the latest version of the Chrome browser.

The --browser option can be used to specify which browser to use. Valid values are chrome and firefox.
If you want to use a specific version of Chrome, you can specify that using the --browser-version option.

Firefox does not support specifying a specific version, so --browser-version latest option will be automatically used when --browser firefox is specified.

Both --browser and --browser-version are optional parameters available when creating sheet icons for both QS Cloud and client-managed QSEoW.

More info is available in the browser section.

Using BSI with a proxy server

If you are behind a proxy server and cannot access the Internet directly, you need to specify the proxy server to use. This can be done using environment variables http_proxyand https_proxy.

Example (on Windows/PowerShell):

$env:http_proxy='http://username:password@proxy.example.com:port'
$env:https_proxy='http://username:password@proxy.example.com:port'

Example (on Linux/macOS):

export http_proxy='http://username:password@proxy.example.com:port'
export https_proxy='http://username:password@proxy.example.com:port'

Concepts specific to QS Cloud

Logging into QS Cloud

QS Cloud is quite flexible when it comes to logging in, supporting both username/password and various Single Sign On (SSO) solutions.

Butler Sheet Icons supports the username/password method, i.e. the method where you enter your username and password in a web form.
Let's say you have a URL to a Sense app in QS Cloud: https://mytenant.eu.qlikcloud.com/sense/app/25dd1bf9-bc47-47c7-8ed1-16e198b26096/hubUrl/%2Fhub

Opening this URL in a clean browser page (i.e. a browser where you are not already logged in to QS Cloud) will show a login page like the one below.
Do note that this page change appearance every now and then - what is shown below is how the login page looked in late April 2024.

Login page in Qlik Sense Cloud

The email/username and password entered here should be present in the QMC's user management section.
The same is true for the username and password used when starting BSI (using the --logonuserid and --logonpwd options) - these credentials must also be present in the QMC.

Skipping the login page

If your company has a Single Sign On (SSO) solution in place, you may never see the QS Cloud login page, but instead arrive directly to the app overview page. BSI will by default wait for the QS Cloud login page to be fully loaded before proceeding - which will never happen in this case.

We're entering somewhat deep water here, as there are many variants of SSO out there.
You can however try to use the --skip-login option (introduced in BSI 3.6.0) to tell BSI to skip the login page all together.
This may or may not work for you, depending on how your company's SSO solution is set up.

Note: The --skip-login option is a beta feature and is subject to change in coming versions of BSI.

Concepts specific to client-managed QS (QSEoW)

Which Sense version is server using

Different QSEoW versions may (will!) have differnen HTML code in the Hub's and apps' user interface.
As BSI pretends to be user accessing Sense, BSI needs to adapt to each Sense version.

The solution is to use the --sense-version command line parameter to specify which version your Sense server is running.
The list of allowed values is available in the BSI help that's shown by running .\butler-sheet-icons.exe qseow create-sheet-thumbnails --help (on Windows/PowerShell in this case).

NOTE: The --sense-version parameter was added in BSI 3.0 and is a mandatory parameter!

Login method

QSEoW offers two different built-in ways to log in using username/pwd.
These are set per virtual proxy in the "Windows authentication pattern" field. Valid options are Windows and Form.

When set to Windows and a user access the virtual proxy from a Windows computer, the user will get a login popup in which she enters username and password. On non-Windows computers the user will instead see a web form.

When set to Form the user will always see a web form in which username and password is entered:

Using different parts of Sense sheet's as thumbnails

Butler Sheet Icons only supports the Form method.
Thus, if you use BSI on Windows you should make sure to specify a virtual proxy (--prefix option) that uses Form authentication!

If the --prefix option is not specified when starting BSI, the default '/' virtual proxy will be used.

If you need to set up a new virtual proxy the following configuration may be useful - it is what each version of BSI is tested against:

Virtual proxy usuing Forms based authentitication, part 1

Virtual proxy usuing Forms based authentitication, part 2

Finally, don't forget to use the --prefix form parameter when starting BSI. That option simply tells BSI to use a virtual proxy called "form" when connecting to the Sense server.

Using QSEoW's built-in Node.js

It is possible, but in most cases not recommended to run Butler Sheet Icons as a Node.js app instead of using the stand-alone, pre-built Butler Sheet Icon binaries.

In this scenario it might be tempting to use the Node.js engine that ships with QSEoW.

While this might sound like a good idea, there are several reasons to stay away from it:

  • QSEoW's bundled Node.js version is pretty old. As of QSEoW Nov 2021 Node.js version 12.x is bundled. Latest version is 16.x.
  • You don't get the npm tool, which is needed to install the dependencies Butler Sheet Icons need (the npm install command). It may be possible to manually install npm and then use Sense's bundled Node version, but it's not recommended.

Commands

Run Butler Sheet Icons with the --help option to show available commands and options.
This works for both top level commands and sub-commands.

On Windows this would be butler-sheet-icons.exe --help.

.\butler-sheet-icons.exe --help
Usage: butler-sheet-icons [options] [command]

This is a tool that creates thumbnail images based on the actual layout of sheets in Qlik Sense applications.
Qlik Sense Cloud and Qlik Sense Enterprise on Windows are both supported.
The created thumbnails are saved to disk and uploaded to the Sense app as new sheet thumbnail images.

Options:
  -V, --version   output the version number
  -h, --help      display help for command

Commands:
  qseow
  qscloud
  browser
  help [command]  display help for command

qseow

.\butler-sheet-icons.exe qseow --help
Usage: butler-sheet-icons qseow [options] [command]

Options:
  -h, --help                         display help for command

Commands:
  create-sheet-thumbnails [options]  Create thumbnail images based on the layout of each sheet in Qlik Sense Enterprise on Windows (QSEoW) applications.
                                     Multiple apps can be updated with a single command, using a Qlik Sense tag to identify  which apps will be updated.
  remove-sheet-icons [options]       Remove all sheet icons from a Qlik Sense Enterprise on Windows (QSEoW) app.
  help [command]                     display help for command

create-sheet-thumbnails

The command assumes there is standard form based authentication page (username + password) available on the specified virtual proxy (which is specified using the --prefix option).

A complete session using this command is described here.

.\butler-sheet-icons.exe qseow create-sheet-thumbnails --help
Usage: butler-sheet-icons qseow create-sheet-thumbnails [options]

Create thumbnail images based on the layout of each sheet in Qlik Sense Enterprise on Windows (QSEoW) applications.
Multiple apps can be updated with a single command, using a Qlik Sense tag to identify  which apps will be updated.

Options:
  --loglevel <level>                  log level (choices: "error", "warn", "info", "verbose", "debug", "silly", default: "info")
  --host <host>                       Qlik Sense server IP/FQDN
  --engineport <port>                 Qlik Sense server engine port (default: "4747")
  --qrsport <port>                    Qlik Sense server repository service (QRS) port (default: "4242")
  --port <port>                       Qlik Sense http/https port. 443 is default for https, 80 for http
  --schemaversion <string>            Qlik Sense engine schema version (default: "12.612.0")
  --appid <id>                        Qlik Sense app whose sheet icons should be modified. (default: "")
  --certfile <file>                   Qlik Sense certificate file (exported from QMC) (default: "./cert/client.pem")
  --certkeyfile <file>                Qlik Sense certificate key file (exported from QMC) (default: "./cert/client_key.pem")
  --rejectUnauthorized <true|false>   Ignore warnings when Sense certificate does not match the --host paramater (default: false)
  --prefix <prefix>                   Qlik Sense virtual proxy prefix (default: "")
  --secure <true|false>               connection to Qlik Sense engine is via https (default: true)
  --apiuserdir <directory>            user directory for user to connect with when using Sense APIs
  --apiuserid <userid>                user ID for user to connect with when using Sense APIs
  --logonuserdir <directory>          user directory for user to connect with when logging into web UI
  --logonuserid <userid>              user ID for user to connect with when logging into web UI
  --logonpwd <password>               password for user to connect with
  --headless <true|false>             headless (=not visible) browser (true, false) (default: true)
  --pagewait <seconds>                number of seconds to wait after moving to a new sheet. Set this high enough so the sheet has time to render properly
                                      (default: 5)
  --imagedir <directory>              directory in which thumbnail images will be stored. Relative or absolute path (default: "./img")
  --contentlibrary <library-name>     Qlik Sense content library to which thumbnails will be uploaded (default: "Butler sheet thumbnails")
  --includesheetpart <value>          which part of sheets should be used to take screenshots. 1=object area only, 2=1 + sheet title, 3=2 + selection bar, 4=3
                                      + menu bar (default: "1")
  --qliksensetag <value>              Used to control which Sense apps should have their sheets updated with new icons. All apps with this tag will be updated.
                                      (default: "")
  --exclude-sheet-tag <value>         Sheets with this tag set will be excluded from sheet icon update.
  --exclude-sheet-number <number...>  Sheet numbers (1=first sheet in an app) that will be excluded from sheet icon update.
  --exclude-sheet-title <title...>    Use sheet titles to control which sheets that will be excluded from sheet icon update.
  --sense-version <version>           Version of the QSEoW server to connect to (choices: "pre-2022-Nov", "2022-Nov", "2023-Feb", "2023-May", "2023-Aug",
                                      "2023-Nov", default: "2023-Nov")
  --browser <browser>                 Browser to install (e.g. "chrome" or "firefox"). Use "butler-sheet-icons browser list-installed" to see which browsers
                                      are currently installed. (choices: "chrome", "firefox", default: "chrome")
  --browser-version <version>         Version (=build id) of the browser to install. Use "butler-sheet-icons browser list-installed" to see which browsers are
                                      currently installed.
  -h, --help                          display help for command

remove-sheet-icons

This command uses the Qlik Sense APIs to remove all sheet icons from one or more apps.

The options to this command are a subset of the options for the qseow create-sheet-thumbnails command:

.\butler-sheet-icons.exe qseow remove-sheet-icons --help
Usage: butler-sheet-icons qseow remove-sheet-icons [options]

Remove all sheet icons from a Qlik Sense Enterprise on Windows (QSEoW) app.

Options:
  --loglevel <level>                 log level (choices: "error", "warn", "info", "verbose", "debug", "silly", default: "info")
  --host <host>                      Qlik Sense server IP/FQDN
  --engineport <port>                Qlik Sense server engine port (default: "4747")
  --qrsport <port>                   Qlik Sense server repository service (QRS) port (default: "4242")
  --port <port>                      Qlik Sense http/https port. 443 is default for https, 80 for http
  --schemaversion <string>           Qlik Sense engine schema version (default: "12.612.0")
  --appid <id>                       Qlik Sense app whose sheet icons should be modified. (default: "")
  --certfile <file>                  Qlik Sense certificate file (exported from QMC) (default: "./cert/client.pem")
  --certkeyfile <file>               Qlik Sense certificate key file (exported from QMC) (default: "./cert/client_key.pem")
  --rejectUnauthorized <true|false>  Ignore warnings when Sense certificate does not match the --host paramater (default: false)
  --prefix <prefix>                  Qlik Sense virtual proxy prefix (default: "")
  --secure <true|false>              connection to Qlik Sense engine is via https (default: true)
  --apiuserdir <directory>           user directory for user to connect with when using Sense APIs
  --apiuserid <userid>               user ID for user to connect with when using Sense APIs
  --qliksensetag <value>             Used to control which Sense apps should have their sheets updated with new icons. All apps with this tag will be updated.
                                     (default: "")
  -h, --help                         display help for command

qscloud

.\butler-sheet-icons.exe qscloud --help
Usage: butler-sheet-icons qscloud [options] [command]

Options:
  -h, --help                         display help for command

Commands:
  create-sheet-thumbnails [options]  Create thumbnail images based on the layout of each sheet in Qlik Sense Cloud applications.
                                     Multiple apps can be updated with a single command, using a Qlik Sense collection to identify which apps will be updated.
  list-collections [options]         List available collections.
  remove-sheet-icons [options]       Remove all sheet icons from a Qlik Sense Cloud app.
  help [command]                     display help for command

create-sheet-thumbnails

.\butler-sheet-icons.exe qscloud create-sheet-thumbnails --help
Usage: butler-sheet-icons qscloud create-sheet-thumbnails [options]

Create thumbnail images based on the layout of each sheet in Qlik Sense Cloud applications.
Multiple apps can be updated with a single command, using a Qlik Sense collection to identify which apps will be updated.

Options:
  --loglevel <level>                  log level (choices: "error", "warn", "info", "verbose", "debug", "silly", default: "info")
  --schemaversion <string>            Qlik Sense engine schema version (default: "12.612.0")
  --tenanturl <url>                   URL or host of Qlik Sense cloud tenant. Example: "https://tenant.eu.qlikcloud.com" or "tenant.eu.qlikcloud.com"
  --apikey <key>                      API key used to access the Sense APIs
  --logonuserid <userid>              user ID for user to connect with when logging into web UI
  --logonpwd <password>               password for user to connect with
  --headless <true|false>             headless (=not visible) browser (true, false) (default: true)
  --pagewait <seconds>                number of seconds to wait after moving to a new sheet. Set this high enough so the sheet has time to render properly
                                      (default: 5)
  --imagedir <directory>              directory in which thumbnail images will be stored. Relative or absolute path (default: "./img")
  --includesheetpart <value>          which part of sheets should be used to take screenshots. 1=object area only, 2=1 + sheet title, 3 not used, 4=full screen
                                      (default: "1")
  --appid <id>                        Qlik Sense app whose sheet icons should be modified.
  --collectionid <id>                 Used to control which Sense apps should have their sheets updated with new icons. All apps in this collection will be
                                      updated (default: "")
  --exclude-sheet-number <number...>  Sheet numbers (1=first sheet in an app) that will be excluded from sheet icon update.
  --exclude-sheet-title <title...>    Use sheet titles to control which sheets that will be excluded from sheet icon update.
  --browser <browser>                 Browser to install (e.g. "chrome" or "firefox"). Use "butler-sheet-icons browser list-installed" to see which browsers
                                      are currently installed. (choices: "chrome", "firefox", default: "chrome")
  --browser-version <version>         Version (=build id) of the browser to install. Use "butler-sheet-icons browser list-installed" to see which browsers are
                                      currently installed.
  -h, --help                          display help for command

list-collections

.\butler-sheet-icons.exe qscloud list-collections --help
Usage: butler-sheet-icons qscloud list-collections [options]

List available collections.

Options:
  --loglevel <level>           log level (choices: "error", "warn", "info", "verbose", "debug", "silly", default: "info")
  --tenanturl <url>            URL or host of Qlik Sense cloud tenant. Example: "https://tenant.eu.qlikcloud.com" or "tenant.eu.qlikcloud.com"
  --apikey <key>               API key used to access the Sense APIs
  --outputformat <table|json>  Output format (choices: "table", "json", default: "table")
  -h, --help                   display help for command

remove-sheet-icons

This command uses the Qlik Sense APIs to remove all sheet icons from one or more apps.

The options to this command are a subset of the options for the qseow create-sheet-thumbnails command:

.\butler-sheet-icons.exe qscloud remove-sheet-icons --help
Usage: butler-sheet-icons qscloud remove-sheet-icons [options]

Remove all sheet icons from a Qlik Sense Cloud app.

Options:
  --loglevel <level>        log level (choices: "error", "warn", "info", "verbose", "debug", "silly", default: "info")
  --schemaversion <string>  Qlik Sense engine schema version (default: "12.612.0")
  --tenanturl <url>         URL or host of Qlik Sense cloud tenant. Example: "https://tenant.eu.qlikcloud.com" or "tenant.eu.qlikcloud.com"
  --apikey <key>            API key used to access the Sense APIs
  --appid <id>              Qlik Sense app whose sheet icons should be modified.
  --collectionid <id>       Used to control which Sense apps should have their sheets updated with new icons. All apps in this collection will be updated
                            (default: "")
  -h, --help                display help for command

browser

BSI has a command called browser. This command can be used to download, install and in other ways control which browser(s) are available to Butler Sheet Icons.

Using the browser command is only needed in very specific scenarios, for example when you want to use a specific version of Chrome or Firefox to capture sheet thumbnails.

On Windows:

.\butler-sheet-icons.exe browser --help
Usage: butler-sheet-icons browser [options] [command]

Options:
  -h, --help                display help for command

Commands:
  list-installed [options]  Show which browsers are currently installed and available for use by Butler Sheet Icons.
  uninstall [options]       Uninstall a browser from the Butler Sheet Icons cache.
                            This will remove the browser from the cache, but will not affect other browsers on this computer.
                            Use the "butler-sheet-icons browser list-installed" command to see which browsers are currently installed.
  uninstall-all [options]   Uninstall all browsers from the Butler Sheet Icons cache.
                            This will remove all browsers from the cache, but will not affect other browsers on this computer.
                            Use the "butler-sheet-icons browser list-installed" command to see which browsers are currently installed.
  install [options]         Install a browser into the Butler Sheet Icons cache.
                            This will download the browser and install it into the cache, where it can be used by Butler Sheet Icons.
                            Use the "butler-sheet-icons browser list-installed" command to see which browsers are currently installed.
  list-available [options]  Show which browsers are available for download and installation by Butler Sheet Icons.
  help [command]            display help for command

list-installed

List what browsers are currently installed and available for use by Butler Sheet Icons.

Note that this command only lists browsers that have been installed by Butler Sheet Icons - not browsers installed by other means.
In other words: Butler Sheet Icons uses its own cache of browsers, it does not use browsers installed on the computer in any other way.

On Windows:

.\butler-sheet-icons.exe browser list-installed --help
Usage: butler-sheet-icons browser list-installed [options]

Show which browsers are currently installed and available for use by Butler Sheet Icons.

Options:
  --loglevel <level>  log level (choices: "error", "warn", "info", "verbose", "debug", "silly", default: "info")
  -h, --help          display help for command

uninstall

Uninstall a browser from the Butler Sheet Icons cache.

This will remove the browser from the cache, but will not affect other browsers on this computer.

.\butler-sheet-icons.exe browser uninstall --help
Usage: butler-sheet-icons browser uninstall [options]

Uninstall a browser from the Butler Sheet Icons cache.
This will remove the browser from the cache, but will not affect other browsers on this computer.
Use the "butler-sheet-icons browser list-installed" command to see which browsers are currently installed.

Options:
  --loglevel <level>           log level (choices: "error", "warn", "info", "verbose", "debug", "silly", default: "info")
  --browser <browser>          Browser to uninstall (e.g. "chrome" or "firefox"). Use "butler-sheet-icons browser list-installed" to see which browsers are
                               currently installed. (default: "chrome")
  --browser-version <version>  Version (=build id) of the browser to uninstall. Use "butler-sheet-icons browser list-installed" to see which browsers are
                               currently installed.
  -h, --help                   display help for command

uninstall-all

Uninstall all browsers from the Butler Sheet Icons cache.
This will remove all browsers from the cache, but will not affect other browsers on this computer.

On Windows:

.\butler-sheet-icons.exe browser uninstall-all --help
Usage: butler-sheet-icons browser uninstall-all [options]

Uninstall all browsers from the Butler Sheet Icons cache.
This will remove all browsers from the cache, but will not affect other browsers on this computer.
Use the "butler-sheet-icons browser list-installed" command to see which browsers are currently installed.

Options:
  --loglevel <level>  log level (choices: "error", "warn", "info", "verbose", "debug", "silly", default: "info")
  -h, --help          display help for command

install

Install a browser into the Butler Sheet Icons cache.
This will download the browser and install it into the cache, where it can be used by Butler Sheet Icons.

On Windows:

.\butler-sheet-icons.exe browser install --help
Usage: butler-sheet-icons browser install [options]

Install a browser into the Butler Sheet Icons cache.
This will download the browser and install it into the cache, where it can be used by Butler Sheet Icons.
Use the "butler-sheet-icons browser list-installed" command to see which browsers are currently installed.

Options:
  --loglevel <level>           log level (choices: "error", "warn", "info", "verbose", "debug", "silly", default: "info")
  --browser <browser>          Browser to install (e.g. "chrome" or "firefox"). Use "butler-sheet-icons browser list-installed" to see which browsers are
                               currently installed. (choices: "chrome", "firefox", default: "chrome")
  --browser-version <version>  Version (=build id) of the browser to install. Use "butler-sheet-icons browser list-installed" to see which browsers are
                               currently installed.
  -h, --help                   display help for command

Older versions of Chrome

If using the command browser list-available --browser chrome you will see that there are several versions of Chrome available for download.
If you then try to install an older version of Chrome it seems the Chrome team has removed the ability to download at least some older versions of Chrome.

The output would look like this in PowerShell on Windows:

.\butler-sheet-icons.exe browser install --browser chrome --browser-version 109.0.5414.74
2023-07-27T05:34:35.117Z info: Resolved browser build id: "109.0.5414.74" for browser "chrome" version "109.0.5414.74"
2023-07-27T05:34:35.119Z info: Installing browser...
2023-07-27T05:34:35.582Z error: Browser version "109.0.5414.74" not found
2023-07-27T05:34:35.582Z error: MAIN browser install: Error: Download failed: server returned code 404. URL: https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/109.0.5414.74/linux64/chrome-linux64.zip

There really isn't much to do about this, other than to use a newer version of Chrome.

Older versions of Firefox

Support for specific Firefox versions is pending, for now only the latest version of Firefox is supported.

Simply use the --browser firefox option to install the latest version of Firefox.
Using --browser firefox --browser-version latest will achieve the same result.

list-available

List which browsers are available online for download and installation by Butler Sheet Icons.

BSI supports Chrome and Firefox, use the --browser option to specify which browser's availability you want to list.
If using Chrome you can use the --channel option to specify which Chrome release channel (stable, beta, dev, canary) you want to list.

BSI will detect what operating system it's running on and only list browser versions that are available for that OS.

There are not many options to this command, on Windows:

.\butler-sheet-icons.exe browser list-available --help
Usage: butler-sheet-icons browser list-available [options]

Show which browsers are available for download and installation by Butler Sheet Icons.

Options:
  --loglevel <level>   log level (choices: "error", "warn", "info", "verbose", "debug", "silly", default: "info")
  --browser <browser>  Browser to install (e.g. "chrome" or "firefox"). Use "butler-sheet-icons browser list-installed" to see which browsers are currently
                       installed. (choices: "chrome", "firefox", default: "chrome")
  --channel <browser>  Which of the browser's release channel versions should be listed?
   This option is only used for Chrome. (choices: "stable", "beta", "dev", "canary", default: "stable")
  -h, --help           display help for command

Hands-on examples

The examples below show how BSI can be used in various situations.

Some examples are on PowerShell in Windows, some are on cmd in Windows.
Others might be on PowerShell in macOS (yes it exists - and is quite good!) or bash on macOS.
Docker might show up too.

The key thing to remember is:

The commands, sub-commands and options are identical no matter what underlying OS or platform is used to run Butler Sheet Icons.

QS Cloud, update a single app + apps in collection

Using PowerShell on Windows Server 2016, with most parameters stored in PowerShell variables.

.\butler-sheet-icons.exe qscloud create-sheet-thumbnails --tenanturl $env:BSI_CLOUD_TENANT_URL --collectionid $env:BSI_CLOUD_COLLECTION_ID --apikey $env:BSI_CLOUD_API_KEY --logonuserid $env:BSI_CLOUD_LOGON_USERID --logonpwd $env:BSI_CLOUD_LOGON_PWD --pagewait 5 --imagedir ./img --includesheetpart 4 --exclude-sheet-number 2 --exclude-sheet-title Sheet 3 --loglevel info --headless true --appid $env:BSI_CLOUD_APP_ID

Create thumbnails in QS Cloud

Note that many of the options used above (e.g. --loglevel info) have their default values, and thus could be omitted to shorten the command a bit.

QS Cloud, list all available collections

Using bash on macOS:

./butler-sheet-icons qscloud list-collections --tenanturl $BSI_CLOUD_TENANT_URL --apikey $BSI_CLOUD_API_KEY --outputformat table

List available collections in QS Cloud

Here we're showing the collections in a table, but it's also possible to get them as JSON by changing the last option to --outputformat json.

Client-managed/QSEoW, update a single app + apps with a certain tag, exclude some sheets

Running the command will

  1. Create new sheet icons for all sheets in
    1. the app with app ID stored in the BSI_APP_ID environment variable. Sample app ID: a3e0f5d2-000a-464f-998d-33d333b175d7.
    2. all apps with the tag 👍😎 updateSheetThumbnail set.
  2. Exclude some sheets (i.e. don't create thumbnails for them)
    1. all sheets named Intro, Definitions or Help.
    2. sheets with position 1 or 10.
    3. all sheets tagged with the tag ❌excludeSheetThumbnailUpdate set.
  3. Create thumbnail images in the ./img directory (specificed by the --imagedir option).
  4. Each screen shot will include the main sheet area and the title row above it (--includesheetpart 2).
  5. Upload the sheet thumbnails to the content library specified in the --contentlibrary option.
  6. Each sheet's icon is updated with the corresponding image in the content library.

Running in bash on macOS with most parameters are set in environment variables:

./butler-sheet-icons qseow create-sheet-thumbnails --loglevel info --host $BSI_HOST --appid $BSI_APP_ID --apiuserdir 'Internal' --apiuserid sa_api --logonuserdir $BSI_LOGON_USER_DIR --logonuserid $BSI_LOGON_USER_ID --logonpwd $BSI_LOGON_PWD --contentlibrary $BSI_CONTENT_LIBRARY --pagewait 5 --secure true --imagedir ./img --certfile $BSI_CERT_FILE --certkeyfile $BSI_CERT_KEY_FILE --includesheetpart 2 --headless true --exclude-sheet-tag '❌excludeSheetThumbnailUpdate' --exclude-sheet-title 'Intro' 'Definitions' 'Help' --exclude-sheet-number 1 10 --qliksensetag "👍😎 updateSheetThumbnail"

Create QSEoW thumbnails on macOS

QS Cloud, Docker container, show help text

Butler Sheet Icons is available as a Docker image. This can be useful if you use Docker or Kubernetes as part of a CI/CD pipeline.

The features, commands and options available in the Docker version of BSI are exactly the same as what's available in the pre-built binaries.

When running BSI in a Docker container on macOS it looks like this when requestinG the main help page.

➜  docker run -it --rm ptarmiganlabs/butler-sheet-icons:latest --help
Usage: butler-sheet-icons [options] [command]

This is a tool that creates thumbnail images based on the actual layout of sheets in Qlik Sense applications.
Qlik Sense Cloud and Qlik Sense Enterprise on Windows are both supported.
The created thumbnails are saved to disk and uploaded to the Sense app as new sheet thumbnail images.

Options:
  -V, --version   output the version number
  -h, --help      display help for command

Commands:
  qseow
  qscloud
  browser
  help [command]  display help for command

If we pass in proper parameters we will get new sheet icons in the specified apps:

docker run -it --name butler-sheet-icons -v /Users/goran/code/temp/img:/nodeapp/img -v /Users/goran/code/temp/cert:/nodeapp/cert --rm ptarmiganlabs/butler-sheet-icons:latest qseow create-sheet-thumbnails --loglevel info --host $BSI_HOST --appid $BSI_APP_ID --apiuserdir 'Internal' --apiuserid sa_api --logonuserdir $BSI_LOGON_USER_DIR --logonuserid $BSI_LOGON_USER_ID --logonpwd $BSI_LOGON_PWD --contentlibrary $BSI_CONTENT_LIBRARY --pagewait 5 --secure true --imagedir ./img --includesheetpart 2 --headless true --exclude-sheet-tag '❌excludeSheetThumbnailUpdate' --exclude-sheet-title 'Intro' 'Definitions' 'Help' --exclude-sheet-number 1 10 --qliksensetag "👍😎 updateSheetThumbnail"

Running Butler Sheet Icons using Docker, updating client-managed Sense app

Note: The command above assumes the certificates exported from QSEoW are available in /Users/goran/code/temp/cert.

QS Cloud, Docker container, update a single app + apps in collection

docker run -it --name butler-sheet-icons -v /Users/goran/code/temp/img:/nodeapp/img -v /Users/goran/code/temp/cert:/nodeapp/cert --rm ptarmiganlabs/butler-sheet-icons:latest qscloud create-sheet-thumbnails --tenanturl $BSI_CLOUD_TENANT_URL --apikey $BSI_CLOUD_API_KEY --logonuserid $BSI_CLOUD_LOGON_USERID --logonpwd $BSI_CLOUD_LOGON_PWD --collectionid $BSI_CLOUD_COLLECTION_ID --headless true --includesheetpart 2 --appid $BSI_CLOUD_APP_ID --pagewait 10

Run Butler Sheet Icons in Docker, updating Qlik Sense Cloud apps

List installed browsers

List what browsers are currently installed and available for use by Butler Sheet Icons.

Note that this command only lists browsers that have been installed by Butler Sheet Icons - not browsers installed by other means.
In other words: Butler Sheet Icons uses its own cache of browsers, it does not use browsers installed on the computer in any other way.

On Windows this would be butler-sheet-icons.exe browser list-installed.

PS C:\tools\butler-sheet-icons> .\butler-sheet-icons.exe browser list-installed
2024-02-16T14:10:55.141Z info: App version: 3.2.3
2024-02-16T14:10:55.141Z info: Installed browsers:
2024-02-16T14:10:55.156Z info:     chrome, build id=121.0.6167.85, platform=win64, path=C:\Users\goran\.cache\puppeteer\chrome\win64-121.0.6167.85
PS C:\tools\butler-sheet-icons>

Install a browser into the BSI cache

This will download and install a specific version of a browser into BSI's browser cache, where it can be used by Butler Sheet Icons.

Use the browser list-installed command to see which browsers are currently installed.

Running the install command without any options will install the latest stable version of Chrome into the cache.

On macOS:

➜  butler-sheet-icons ./butler-sheet-icons browser install
2024-02-16T14:14:57.561Z info: App version: 3.2.3
2024-02-16T14:14:57.668Z info: Resolved browser build id: "121.0.6167.85" for browser "chrome" version "stable"
2024-02-16T14:14:57.712Z info: Installing browser...
2024-02-16T14:14:57.712Z info: Browser "chrome" version "121.0.6167.85" installed
➜  butler-sheet-icons

The same thing in PowerShell on Windows:

PS C:\tools\butler-sheet-icons> .\butler-sheet-icons.exe browser install
2024-02-16T14:13:35.312Z info: App version: 3.2.3
2024-02-16T14:13:35.484Z info: Resolved browser build id: "121.0.6167.85" for browser "chrome" version "stable"
2024-02-16T14:13:35.562Z info: Installing browser...
2024-02-16T14:13:44.062Z info: Browser "chrome" version "121.0.6167.85" installed
PS C:\tools\butler-sheet-icons>

Firefox can be installed in the same way, just use --browser firefox instead of --browser chrome.
Only the latest version of Firefox can be installed at this time.

On macOS:

➜  butler-sheet-icons ./butler-sheet-icons browser install --browser firefox --browser-version latest
2024-02-16T14:17:47.673Z info: App version: 3.2.3
2024-02-16T14:17:47.976Z info: Resolved browser build id: "124.0a1" for browser "firefox" version "latest"
2024-02-16T14:17:48.343Z info: Installing browser...
2024-02-16T14:19:06.845Z info: Browser "firefox" version "124.0a1" installed
➜  butler-sheet-icons

Show what browsers are available for download and use with BSI

BSI supports Chrome and Firefox, use the --browser option to specify which browser's availability you want to list.
If using Chrome you can use the --channel option to specify which Chrome release channel (stable, beta, dev, canary) you want to list.

BSI will detect what operating system it's running on and only list browser versions that are available for that OS.

For example, showing available stable versions of Chrome for macOS:

➜  butler-sheet-icons ./butler-sheet-icons browser list-available --browser chrome --channel stable
2024-02-16T14:15:46.237Z info: App version: 3.2.3
2024-02-16T14:15:46.677Z info: Chrome versions from "stable" channel:
2024-02-16T14:15:49.320Z info:     121.0.6167.85, "chrome/platforms/mac/channels/stable/versions/121.0.6167.85"
2024-02-16T14:15:49.684Z info:     121.0.6167.75, "chrome/platforms/mac/channels/stable/versions/121.0.6167.75"
2024-02-16T14:15:52.633Z info:     120.0.6099.109, "chrome/platforms/mac/channels/stable/versions/120.0.6099.109"
2024-02-16T14:15:53.060Z info:     120.0.6099.71, "chrome/platforms/mac/channels/stable/versions/120.0.6099.71"
2024-02-16T14:15:53.545Z info:     120.0.6099.62, "chrome/platforms/mac/channels/stable/versions/120.0.6099.62"
2024-02-16T14:15:53.998Z info:     120.0.6099.56, "chrome/platforms/mac/channels/stable/versions/120.0.6099.56"
2024-02-16T14:15:54.968Z info:     119.0.6045.159, "chrome/platforms/mac/channels/stable/versions/119.0.6045.159"
2024-02-16T14:15:55.288Z info:     119.0.6045.123, "chrome/platforms/mac/channels/stable/versions/119.0.6045.123"
...
...
➜  tools 

Note the build IDs (e.g. 121.0.6167.85) in the output.
These are the IDs that should be used when installing a specific version of Chrome for use with BSI

Firefox support is limited, only the latest version of Firefox is supported.
Firefox does not have build IDs, instead it has more human readable version numbers (e.g. 115.0.3).

Uninstall a browser from the BSI cache

Uninstall a browser from the Butler Sheet Icons cache.

This will remove the browser from the cache, but will not affect other browsers on this computer.
Use the browser list-installed command to see which browsers are currently installed.

Example on Windows:
First list already installed browsers, then uninstall one of them. Finally list installed browsers again to verify that the uninstallation worked:

PS C:\tools\butler-sheet-icons> .\butler-sheet-icons.exe browser list-installed
2024-02-16T14:24:20.096Z info: App version: 3.2.3
2024-02-16T14:24:20.112Z info: Installed browsers:
2024-02-16T14:24:20.112Z info:     chrome, build id=121.0.6167.85, platform=win64, path=C:\Users\goran\.cache\puppeteer\chrome\win64-121.0.6167.85
2024-02-16T14:24:20.112Z info:     firefox, build id=124.0a1, platform=win64, path=C:\Users\goran\.cache\puppeteer\firefox\win64-124.0a1
PS C:\tools\butler-sheet-icons>
PS C:\tools\butler-sheet-icons> .\butler-sheet-icons.exe browser uninstall --browser-version 121.0.6167.85
2024-02-16T14:26:39.018Z info: App version: 3.2.3
2024-02-16T14:26:39.018Z info: Starting browser uninstallation
2024-02-16T14:26:39.018Z info: Uninstalling browser: chrome, build id=121.0.6167.85, platform=win64, path=C:\Users\goran\.cache\puppeteer\chrome\win64-121.0.6167.85
2024-02-16T14:26:39.096Z info: Browser "chrome", version "121.0.6167.85" uninstalled.
PS C:\tools\butler-sheet-icons>
PS C:\tools\butler-sheet-icons> .\butler-sheet-icons.exe browser list-installed
2024-02-16T14:26:44.597Z info: App version: 3.2.3
2024-02-16T14:26:44.597Z info: Installed browsers:
2024-02-16T14:26:44.613Z info:     firefox, build id=124.0a1, platform=win64, path=C:\Users\goran\.cache\puppeteer\firefox\win64-124.0a1
PS C:\tools\butler-sheet-icons>

Uninstall all browsers from the BSI cache

This will remove all browsers from the cache, but will not affect other browsers on this computer.

Example on macOS:
First list installed browsers, then uninstall all of them. Finally list installed browsers again to verify that the uninstallation worked:

➜  butler-sheet-icons ./butler-sheet-icons browser list-installed
2024-02-16T14:27:20.425Z info: App version: 3.2.3
2024-02-16T14:27:20.427Z info: Installed browsers:
2024-02-16T14:27:20.428Z info:     chrome, build id=121.0.6167.85, platform=mac, path=/Users/goran/.cache/puppeteer/chrome/mac-121.0.6167.85
2024-02-16T14:27:20.428Z info:     firefox, build id=124.0a1, platform=mac, path=/Users/goran/.cache/puppeteer/firefox/mac-124.0a1
➜  butler-sheet-icons
➜  butler-sheet-icons ./butler-sheet-icons browser uninstall-all
2024-02-16T14:29:24.989Z info: App version: 3.2.3
2024-02-16T14:29:24.990Z info: Starting uninstallation of all browsers
2024-02-16T14:29:24.991Z info: Uninstalling 2 browsers:
2024-02-16T14:29:24.992Z info:     Starting uninstallation of "chrome", build id "121.0.6167.85", platform "mac", path "/Users/goran/.cache/puppeteer/chrome/mac-121.0.6167.85"
2024-02-16T14:29:25.880Z info:     Starting uninstallation of "firefox", build id "124.0a1", platform "mac", path "/Users/goran/.cache/puppeteer/firefox/mac-124.0a1"
2024-02-16T14:29:26.214Z info: Removing any remaining files and directories in the browser cache directory
2024-02-16T14:29:26.214Z info: Browser "chrome" (121.0.6167.85) uninstalled.
2024-02-16T14:29:26.214Z info: Browser "firefox" (124.0a1) uninstalled.
➜  butler-sheet-icons
➜  butler-sheet-icons ./butler-sheet-icons browser list-installed
2024-02-16T14:29:29.943Z info: App version: 3.2.3
2024-02-16T14:29:29.944Z info: No browsers installed
➜  butler-sheet-icons

Supported Qlik Sense versions

Client-managed Qlik Sense (=Qlik Sense Enterprise on Windows)

Version BSI version Tested date Comment
2024-May IR 3.6.2 2024-Jun-3 Use --sense-version 2024-May
2024-May IR 3.6.1 2024-Jun-2 Use --sense-version 2024-May
2023-Nov patch 3 2024-Feb-16 Use --sense-version 2023-Nov
2023-Aug patch 3 2023-Jan-04 Use --sense-version 2023-Aug
2023-May patch 6 2023-Oct-06 Use --sense-version 2023-May
2023-May IR 2023-July-24 Use --sense-version 2023-May
2022-Nov patch 2 2023-Jan-3 Use --sense-version 2022-Nov
2022-Aug patch 5 2023-Jan-2 Use --sense-version pre-2022-Nov
2022-May IR 2022-Sep-30 Use --sense-version pre-2022-Nov

Qlik Sense cloud

Tested date BSI version Comment
2024-Jun-3 3.6.2 Works without issues
2024-Jun-2 3.6.1 Works without issues
2024-Apr-24 3.5.0 Works without issues
2024-Apr-22 3.4.1 Login page has changed, cannot log in
2024-Mar-8 3.4.1 Works without issues
2024-Feb-16 3.2.3 Works without issues
2023-Dec-6 3.2.0 Works without issues
2023-Nov-7 3.1.0 Works without issues
2023-July-24 Works without issues
2023-July-9 Works without issues
2023-Jan-3 Works without issues
2022-Sep-30 Works without issues

Testing

Whenever changes are made to Butler Sheet Icons the new version is automatically tested against both a real client-managed Qlik Sense server and a Qlik Sense Cloud tenant.

Tests are made on the following platforms and Node.js versions during the automated build process:

  • Windows Server 2016
    • Latest available Node.js LTS (Long Term Support) version.
  • Windows Server 2019
    • Latest available Node.js LTS (Long Term Support) version.
  • MacOS Monterey
    • Intel x64
    • Latest available Node.js LTS version.

Manual tests are also frequently done on Windows 10 and macOS.

When things don't quite work

The GitHub discussion forums is where you will find questions, problems and solutions.

Add your own questions (and solutions!) if you don't already find them there.

Security and disclosure

Butler Sheet Icons (=BSI) is open source and you have access to all source code.
It is your own responsibility to determine if BSI is suitable for your use case.
The creators of BSI, including Ptarmigan Labs, Göran Sander or any other contributor, can and must never be held liable to past or future security issues of BSI.
If you have security concerns or ideas around BSI, please get involved in the project and contribute to making it better!

If you discover a serious bug with BSI that may pose a security problem, please disclose it confidentially to security@ptarmiganlabs.com first, so it can be assessed and hopefully fixed prior to being exploited. Please do not raise GitHub issues for security-related doubts or problems.

Platform specific security information

Windows

The Windows version of Butler Sheet Icons is signed with a code signing certificate issued by Certum, issued to "Open Source Developer, Göran Sander".

Butler Sheet Icons binary for Windows is signed

macOS

The macOS version is signed and notarized by Apple's standard process.
A warning may still be shown first time the app is started. This is expected and normal.

About

Creates thumbnail images based on sheets in Qlik Sense applications

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 99.1%
  • Dockerfile 0.9%