Command Details
qalita --ui
Starts the local web UI for the CLI.
Configuration can be provided via flags or environment variables. See Environment Variables.
Parameters:
- --host (or
QALITA_WORKER_UI_HOST): Host interface to listen on (default:localhost) - --port (or
QALITA_WORKER_UI_PORT): Port to listen on (default:7070)
Environment:
QALITA_WORKER_UI=trueenables the local UIQALITA_WORKER_UI_HOST=localhostQALITA_WORKER_UI_PORT=7070
Example:
- Linux/macOS
- Windows (PowerShell)
qalita --ui --host localhost --port 7070
python -m qalita --ui --host localhost --port 7070
qalita worker
Allows you to:
- Register a worker on the platform
- Get information about your local worker
- Run a pack on a source
- List jobs (past and upcoming)
qalita worker login
Parameters:
- name: Worker name
- mode: Worker mode (
job/worker) - token: API token provided by the platform
- url: Backend API URL of the platform
qalita worker login registers your local worker on the platform. This allows you to run jobs or schedule executions.
You must have configured your agent with:
QALITA_WORKER_ENDPOINT=backend_api_urlQALITA_WORKER_TOKEN=api_token
Use an API token: get it from the API Token section of your Profile page in the platform (Get my token). Do not use the session token returned when you sign in: it is short-lived, and since platform 3.2.2 the platform refuses every token once it has expired.
The API token stops working when it expires (QALITA_API_TOKEN_EXPIRE_MINUTES on the platform), and earlier when it is revoked: you regenerate it, your password is changed or reset, an administrator changes your role or habilitations, or you are removed from the team (see Token revocation). The worker is then refused: set the new API token in QALITA_WORKER_TOKEN (or --token), run qalita worker login again and restart qalita worker run.
qalita worker run
Parameters:
The options below are defined at the agent group level and/or the run command level:
Worker group (applicable to all subcommands):
-n, --name(orQALITA_WORKER_NAME)-m, --mode(orQALITA_WORKER_MODE) — values:job|worker-t, --token(orQALITA_WORKER_TOKEN)-u, --url(orQALITA_WORKER_ENDPOINT)
Worker run command:
-s, --source-id(orQALITA_WORKER_JOB_SOURCE): Source ID-sv, --source-version(orQALITA_WORKER_JOB_SOURCE_VERSION): Source version (default: latest)-t, --target-id: Target source ID (optional)-tv, --target-version: Target source version (optional)-p, --pack-id(orQALITA_WORKER_JOB_PACK): Pack ID-pv, --pack-version(orQALITA_WORKER_JOB_PACK_VERSION): Pack version (default: latest)--grpc/--no-grpc(orQALITA_WORKER_GRPC): Use gRPC for real-time job dispatch inworkermode (default: enabled).--no-grpcfalls back to REST polling.--grpc-endpoint(orQALITA_GRPC_ENDPOINT): Explicit gRPC endpoint override, see gRPC endpoint resolution.
qalita worker run
Works in two modes:
Job
The worker runs according to the given configuration:
-p:pack_id(seeqalita pack list). Your pack must be published to have an ID.-s:source_id(seeqalita source list). Your source must be published to have an ID.
Worker
The worker waits for an order from the platform, then acts as in job mode.
Note: This mode runs indefinitely, you can adjust the pooling interval by editing the ENV variable : WORKER_POLLING_INTERVAL
gRPC endpoint resolution
In worker mode, the worker opens a gRPC channel to the backend for real-time job dispatch (if the gRPC connection fails, it automatically falls back to REST polling). By default, the gRPC target is auto-derived from QALITA_WORKER_ENDPOINT:
QALITA_WORKER_ENDPOINT | Derived gRPC target |
|---|---|
http://localhost:3080 | localhost:50051 (insecure) |
http://qalita-backend-service:3080 (hostname without a dot) | qalita-backend-service:50051 (insecure) |
https://api.example.com | grpc.example.com:443 (TLS) |
Any other https://host.example.com | grpc.host.example.com:443 (TLS) |
When this derivation does not match your deployment, set the target explicitly with --grpc-endpoint or QALITA_GRPC_ENDPOINT. The hostname is then used as-is (no grpc. prefix injection). Typical cases:
- Kubernetes intra-cluster: the backend's gRPC port (50051) is exposed on the same Service as the REST API, with no dedicated gRPC ingress.
- Custom gRPC ingress hostname: your public gRPC endpoint does not follow the
grpc.<domain>naming convention.
Accepted formats:
| Value | Channel | Default port |
|---|---|---|
host:50051 (no scheme) | insecure | none — always specify the port |
grpc://host:port or http://host:port | insecure | 50051 |
grpcs://host:port or https://host:port | TLS | 443 |
# Kubernetes intra-cluster (gRPC port on the same Service as the REST API)
qalita worker run --grpc-endpoint qalita-backend-service:50051
# or with the full service DNS name:
qalita worker run --grpc-endpoint backend.qalita.svc.cluster.local:50051
# Public gRPC ingress behind TLS with a custom hostname
qalita worker run --grpc-endpoint grpcs://my-grpc.example.com:443
A value without a scheme opens an insecure channel. If your gRPC endpoint is behind TLS, use the grpcs:// scheme.
--grpc-endpoint only affects the real-time gRPC channel: QALITA_WORKER_ENDPOINT is still required for all REST API calls (login, source/pack push, job results upload...).
qalita worker joblist
Lists the worker's jobs on the platform.
- Linux/macOS
- Windows (PowerShell)
qalita worker joblist
python -m qalita worker joblist
qalita worker info
Displays information about the local worker (name, mode, backend URL, registered agent ID).
- Linux/macOS
- Windows (PowerShell)
qalita worker info
python -m qalita worker info
qalita pack
The qalita pack command allows you to:
- Initialize a new pack
- List available packs
- Validate a pack
- Run a pack locally
- Publish a pack version on the platform
qalita pack init
Parameters:
- --name: Pack name
Initializes a new pack. You must define a name; a folder will be created with this name.
You can set the name via a command-line parameter or via the environment variable QALITA_PACK_NAME=my-super-pack.
Directory structure created:
./`pack-name`_pack/
/run.sh # Standard runner, started by Linux workers with `sh run.sh`
/run.bat # Standard runner for Windows workers, calls run.ps1
/run.ps1 # Standard runner for Windows workers (PowerShell)
/pyproject.toml # Python version range (requires-python) and dependencies of main.py
/properties.yaml # Properties of the pack: name, version, type, visibility
/pack_conf.json # Configuration of the pack (job) and charts shown on the platform (charts)
/main.py # The pack code: reads the source with qalita_core and writes metrics.json
/README.md # Documentation file
/.gitattributes # Keeps LF line endings when the pack is versioned with git
The runners pick a Python interpreter that matches requires-python in pyproject.toml, create a virtual environment for the pack, install its dependencies with uv and run main.py. They are the runners of the packs published in qalita/packs, and the Pack Builder generates the same ones. Do not edit them: declare the dependencies of main.py in the dependencies list of pyproject.toml, which already contains qalita-core>=2.1.3.
Every file is written with LF line endings, Windows included. Running the command again keeps the files that already exist.
Migrating a pack created with an older CLI
qalita pack init from a QALITA CLI older than 3.2.0 generated a run.sh that installs requirements.txt with pip into the worker's own Python, which the standard Docker worker does not allow. qalita pack validate and the run logs of such a pack say so. To migrate it:
- Delete
run.sh. - From the parent folder of the pack, run
qalita pack init --name <name>. Existing files are kept. The package requirements ofrequirements.txtare copied into the newpyproject.toml. What it cannot take is listed, with any credentials in URLs masked: option lines such as-ror--index-url, URLs, local paths, wheel or archive files, and per-requirement options such as--hash. - Check the dependencies in
pyproject.toml:requirements.txtis no longer used. Aqalita-corerequirement is replaced byqalita-core>=2.1.3. qalita-core 2 is a major release with breaking changes (pandas is no longer installed with it), so updatemain.pyif it was written for qalita-core 1.x, and addpandastopyproject.tomlifmain.pyimports it. - Bump
versioninproperties.yaml, then runqalita pack push.
qalita pack list
Parameters:
- You must be logged in via
qalita worker login
Lists all packs available on the QALITA platform.
qalita pack run
Parameters:
- --name: Pack name
Runs your locally configured pack.
qalita pack validate
Parameters:
- --name: Pack name
Validates your locally configured pack:
- The mandatory files
run.sh,properties.yamlandREADME.mdexist and are not empty, andproperties.yamlsetsname,versionandtype. A missingvisibilitydefaults toprivate. - Errors:
run.shis a standard runner (it readsrequires-python), butpyproject.tomlis missing or has norequires-pythonline. - Warnings, which do not block a push: a shell script with Windows (CRLF) line endings, a
run.shthat does not start with a shebang (#!), and arun.shthat installs withpipinto the worker's Python (see Migrating a pack created with an older CLI).
qalita pack push
Parameters:
- --name: Pack name
Publishes your locally configured pack. The pack is validated first, and is not pushed when validation reports errors. Shell scripts (.sh, .bash) with Windows (CRLF) line endings are converted to LF in the uploaded pack; the local files are not modified.
qalita source
The qalita source command allows you to:
- Add a new source to your local configuration
- List your local sources from the sources-conf.yml file
- Publish your local sources from the sources-conf.yml file
- Validate your configuration file sources-conf.yml
sources-conf.yml file is stored in ~/.qalita/sources-conf.yml. Set the QALITA_HOME variable to customize the path.qalita source add
This command guides you to add a new source in sources-conf.yaml.
Parameters (optional, PostgreSQL sources only, see PostgreSQL connection role and search_path):
- --role: role applied on every connection, as
SET ROLEwould - --search-path:
search_pathapplied on every connection, for exampleanalytics,public
qalita source add --role app_reader --search-path analytics,public
Then follow the successive prompts:
- Prompt 1: Source name
- Prompt 2: Source type
- Prompt 3: Depends on the source type
- Case: type =
file/folder: path as seen by the worker (inside the container when the worker runs in Docker, see File and folder sources) - Case: type =
database: host / port / username / password / database - Case: type =
postgresql: also an optional schema, then an optional role and an optional search_path (not asked when--role/--search-pathare given)
- Case: type =
- Prompt 4: Description
- Prompt 5: Is the source a reference? [bool] (default: false)
- Prompt 6: Is the source sensitive? [bool] (default: false)
- Prompt 7: Visibility (private, internal, public) (default: private)
At the end, the CLI checks the accessibility of the source based on the configuration and type (validate_source).
To complete the source registration on the platform, publish it with: qalita source push
qalita source validate
Utility command to validate your sources-conf.yaml file.
qalita source list
Parameters:
You must have a sources-conf.yaml file containing the source configuration.
Example:
version: 1
sources:
- config:
path: /home/user/data_dir
description: Folder containing csv files
name: my_csv_files
owner: user
reference: false
visibility: private
sensitive: false
type: file
In this example: General keys
| Key | Type | Description |
|---|---|---|
| version | int | Configuration file version |
| sources | list | List of sources |
Source keys
| Key | Type | Description |
|---|---|---|
| name | string | Source name |
| description | string | Source description |
| owner | string | Source owner |
| type | string | Source type |
| config | dict | Source configuration |
| visibility | string | Visibility private/internal/public |
| reference | bool | Is the source a reference source? |
| sensitive | bool | Does the source contain sensitive data? |
qalita source push
Publishes your sources to the platform.
If you want to run a pack on your source, you will first need to push your source to the platform. It will give you a source id with which you can run your pack on.
Parameters:
- --skip-validate: Does not validate sources locally before publishing. Equivalent to the ENV
QALITA_SKIP_VALIDATE=true.- Warning: This may push unreachable/invalid sources.
- Note: This flag is sometimes called "skip-verify" in some contexts. The exact name in the CLI is
--skip-validate.
Behavior:
- Loads the local configuration (
~/.qalita/sources-conf.ymlby default) and, unless--skip-validateis used, performs local validation. - Queries the platform and:
- Updates an existing source if it is already published (visibility, description, sensitive, reference) and synchronizes the local
idif needed. - Publishes a new source otherwise; asks for confirmation if visibility is
public.
- Updates an existing source if it is already published (visibility, description, sensitive, reference) and synchronizes the local
- On success, writes the returned
idto the local configuration file.
Examples: Simple publish:
- Linux/macOS
- Windows (PowerShell)
qalita source push
python -m qalita source push
Force publish without local validation:
- Linux/macOS
- Windows (PowerShell)
qalita source push --skip-validate
python -m qalita source push --skip-validate
Use environment variable (equivalent to --skip-validate):
- Linux/macOS
- Windows (PowerShell)
QALITA_SKIP_VALIDATE=1 qalita source push
$env:QALITA_SKIP_VALIDATE='1'; qalita source push