Skip to main content

Quick Start

Prerequisites:
  • The CLI uses Python. Make sure you have installed a version of python >= 3.8.
  • You must have an active account with a valid license on Platform
  • You must have at least the Data Engineer role

Local Installation​

pip install qalita

Or use the Docker image.

Looking for Studio?

QALITA Studio is now fully integrated into QALITA Platform. Access Studio directly from the Platform web interface - no separate installation required.

Windows (PowerShell)

After installation, if the qalita command is not recognized, you can always run the CLI via the Python module:

python -m qalita --help

To use qalita directly without prefixing with python -m, ensure that the Scripts folder of your Python environment is in the user PATH:

  • Python installed for the user (Microsoft Store or python.org): Usually add C:\Users\<your_user>\AppData\Local\Programs\Python\Python<version>\Scripts and C:\Users\<your_user>\AppData\Local\Programs\Python\Python<version>.
  • Virtual environment (venv): Add C:\path\to\venv\Scripts. Update PATH in PowerShell (current session):
$env:Path += ";C:\Users\<your_user>\AppData\Local\Programs\Python\Python312;C:\Users\<your_user>\AppData\Local\Programs\Python\Python312\Scripts"

Make it permanent (PowerShell profile):

if (!(Test-Path -Path $PROFILE)) { New-Item -ItemType File -Path $PROFILE -Force | Out-Null }
Add-Content -Path $PROFILE -Value '$env:Path += ";C:\Users\<your_user>\AppData\Local\Programs\Python\Python312;C:\Users\<your_user>\AppData\Local\Programs\Python\Python312\Scripts"'

Replace <your_user> and Python312 with your paths/versions. After updating the PATH, open a new terminal and run:

qalita --help

Usage​

To verify the installation and get detailed help:

qalita --help
Usage: qalita [OPTIONS] COMMAND [ARGS]...
QALITA Command Line Interface

Quick Commands (Copy-Paste)​

  • Login worker (requires QALITA_WORKER_NAME, QALITA_WORKER_MODE, QALITA_WORKER_ENDPOINT, QALITA_WORKER_TOKEN)

You can find them by [copy/pasting] your platform Modal :

export QALITA_WORKER_NAME=agent-1
export QALITA_WORKER_MODE=worker
export QALITA_WORKER_ENDPOINT=http://localhost:3080
export QALITA_WORKER_TOKEN=xxxxxxxx
qalita worker login
  • Run a job (job mode) on an existing source and pack
QALITA_WORKER_MODE=job ; qalita worker run -s source_id -p pack_id
  • With explicit versions:
QALITA_WORKER_MODE=job qalita worker run -s <source_id> -sv <source_version> -p <pack_id> -pv <pack_version>
  • Start the agent in worker mode (infinite loop)
QALITA_WORKER_MODE=worker qalita worker run
  • List sources and packs
qalita source list
qalita pack list
  • Publish local sources (with or without validation)
qalita source push
# or
qalita source push --skip-validate

Configuration​

The CLI communicates with the QALITA platform API. Several levels of configuration exist depending on your needs:

Minimal Configuration​

  • QALITA_WORKER_NAME=agent_name The worker name allows you to identify it in the interface; no specific format is required.

  • QALITA_WORKER_MODE=job/worker Available modes:

    • Job: In job mode, qalita worker run immediately starts a process in the local context.
    • Worker: In worker mode, qalita worker run waits for orders from the backend before executing processes (similar to a scheduler).
Note: The qalita worker run command requires additional configuration to work properly, otherwise it will display errors.

Connected Configuration​

  • QALITA_WORKER_ENDPOINT=backend_api_url Example: http://localhost:3080 The API URL allows the agent to communicate with the platform and enables:

    • Pack listing
    • Job execution
    • Source publishing
    • Pack publishing
  • QALITA_WORKER_TOKEN=api_token The token is provided during the quickstart in the web application. It is associated with your user and role.

Create a .env File and Export Environment Values​

You can create a .env file and export its values to your environment.

.env-local

QALITA_WORKER_NAME=`agent_name`
QALITA_WORKER_MODE=`job/worker`
QALITA_WORKER_ENDPOINT=https://api.company.com
QALITA_WORKER_TOKEN=`api_token`
QALITA_PACK_NAME=`pack_name`

Then export the file values to your environment:

set -a; source .env-local; set +a

OS-Specific Commands (Environment Variables)​

Set environment variables according to your OS:

export QALITA_WORKER_NAME=agent_name
export QALITA_WORKER_MODE=job
export QALITA_WORKER_ENDPOINT=http://localhost:3080
export QALITA_WORKER_TOKEN=your_token_here
export QALITA_PACK_NAME=pack_name