Projects
Projects can live in any folder. And the general rule is: one project, one Qlik app.
Create project
To create a project run:
1 | |
This will create a new folder (my-project-name) into the current folder.
Project folder structure
Once the project folder is created it will have the following structure:
1 2 3 4 5 6 7 8 | |
The main entities here are:
dist- where the final script is stored.LoadScript.qvswill be generated automaticallysrc- this is the "main" folder. Each file in this folder represents script tab in Qlik. Each file naming convention is:- number representing the position of the tab in the main script
- separator (
--) - name of the tab in the script
- extension (
.qvs)
Info
Files order and numbering can be managed with section command
config.yml- configuration for this project (see the next section)
Setup project
create command will create a boilerplate config.yml outlining the possible configuration options.
This boilerplate file contains list of named environments. Each item in the list contains four main properties:
name- used defined environment namehost- url/machine name to which connection will be madeappId- the ID of the managed appauthenticationwhat type of authentication will be used to establish connection
Important
The name property is important. Its value will be used to match a respective credentials in the global config
Authentication properties
Inside the authentication section the type property specifies the type of the authentication. The possible values are:
1 2 3 4 | |
Additionally if connection is established to QSE (on-prem) and virtual proxy is used here we can specify the cookie name that the virtual proxy uses. Via sessionHeaderName optional property
Other/optional properties
secure- default istrue. Connection to be established viahttps (true)orhttp (false)trustAllCerts- default istrue. To ignore (true) all certificate errors (like self-signed certificates) or not (false) when establishing connection.
Examples
Important
To get the actual auth information (user/pass, jwt etc.) the name property is matched to the same value in the global config (C:\Users\<CURRENT USER>\.qlbuilder.yml)
Certificates (direct engine connection)
1 2 3 4 5 6 7 | |
Virtual proxy and cookie name:
1 2 3 4 5 6 | |
Windows authentication
1 2 3 4 5 | |
SaaS
1 2 3 4 5 | |