Qmpass CLI
Run a Qmpass release gate evaluation from your CI/CD pipeline. The pipeline
deploys a release candidate, qmpass-cli evaluates the stage's gate, and the job passes or fails on
the gate's automated checks. Manual checks stay open in Qmpass for your testers — the pipeline never
waits for them.
Requirements
- Python 3.10 or newer
- A project API token with write access: Project settings → API tokens (Pro plan and up)
- For
--agent auto(the default): Docker on the runner. Otherwise, an agent your team runs (see "Which agent runs the checks" below).
Install
pipx install qmpass-cli
Use pipx (or pipx run) so the CLI gets its own environment and never clashes with your job's
packages. Pin the version in pipelines (qmpass-cli==0.2.0) to upgrade on your schedule.
Run
export QMPASS_TOKEN=qmp_proj_… # keep it in your CI secrets
qmpass-cli gate evaluate --release 10023 --stage PST-02
Name the gate by its ref (--gate PGT-0007, shown at the end of the gate page's breadcrumb) or by
release id + stage ref (--release 10023 --stage PST-02, stage refs are in Project settings →
Release stages). The evaluation tests the stage's App Address.
| Option | Default | |
|---|---|---|
--agent |
auto |
auto starts a temporary agent in Docker on the runner and removes it afterwards. Or the name of an agent your team runs (it must be online). |
--timeout |
45m |
Stop waiting and cancel the evaluation. |
--no-wait |
Start and exit 0 (named agents only). | |
--name |
<pipeline> #<build number> |
Evaluation name in Qmpass. |
--build-version, --commit, --branch, --build-url |
from the CI environment | Shown on the Evaluation page. |
--idempotency-key |
the CI run id | Same key = same evaluation, so a re-run of the job doesn't start a second one. |
--agent-image |
the release this CLI was tested with | Another agent image (env QMPASS_AGENT_IMAGE). |
--agent-variant rpa |
The agent image with the RPA framework (Salesforce, Excel, PDF, Email, …). |
QMPASS_URL defaults to https://api.qmpass.ai.
Which agent runs the checks
The CLI only needs the project API token (QMPASS_TOKEN). It never needs an agent token.
--agent auto (default) — a temporary agent on the runner
qmpass-cli gate evaluate --release 10023 --stage PST-02
- The CLI starts the evaluation; Qmpass creates a temporary agent for this evaluation only.
- The CLI runs the Qmpass test agent image with
docker runon the runner. - The agent connects to Qmpass, runs the gate's automated checks and reports the results.
- When the checks are done, Qmpass removes the agent and its token, and the container stops.
Needs Docker on the runner. The agent runs on the runner, so it reaches whatever the runner reaches —
preview deploys, or internal URLs on self-hosted runners. Use --agent-variant rpa when the gate's
runbooks use the RPA framework.
--agent "<name>" — an agent your team runs
qmpass-cli gate evaluate --release 10023 --stage PST-02 --agent "QA runner"
The checks run on an agent you installed and connected beforehand (pipx install qmpass-test-agent,
then qmpass-agent run with that agent's own token from Project settings → Agents). It must be
online when the evaluation starts, otherwise the CLI stops with exit code 3. Use it when:
- the runner has no Docker;
- the app under test is reachable only from a particular machine (private network, VPN);
- the checks need a desktop or Windows machine.
With a named agent, --no-wait starts the evaluation and exits straight away; follow it in Qmpass.
Either way the CLI waits only for the automated checks — manual checks stay open in Qmpass for your testers.
Build details are read from GitHub Actions, Bitbucket Pipelines, GitLab CI, Jenkins and Azure Pipelines.
Exit codes
| Code | Meaning |
|---|---|
0 |
The automated checks passed. Manual checks may still be open in Qmpass. |
1 |
An automated check failed, was blocked or couldn't run. |
3 |
Setup or infrastructure: token, gate not found, agent offline or not started, Docker missing, timeout, evaluation abandoned. |
Qmpass is an advisory gate: if you don't want a failed check to fail the job, allow the step to fail
(continue-on-error / allow_failure).
The CLI prints progress and a summary with the failed checks and a link to the evaluation, and writes
qmpass-evaluation.json. On GitHub Actions it also writes the job summary and the step outputs
evaluation, state, outcome and url.
In your pipeline
Two commands in any CI: install the CLI, then evaluate. Keep QMPASS_TOKEN in your CI's secrets — the token
belongs to one project, so nothing else is needed. --agent auto (the default) needs Docker on the runner.
GitHub Actions (ubuntu-* runners have pipx and Docker):
- name: Qmpass gate
run: |
pipx install qmpass-cli==0.2.0
qmpass-cli gate evaluate --release 10023 --stage PST-02 --build-version "${{ github.ref_name }}"
env:
QMPASS_TOKEN: ${{ secrets.QMPASS_TOKEN }}
On GitHub the CLI also writes the job summary and the step outputs evaluation, state, outcome, url.
Bitbucket Pipelines (secured repository variable QMPASS_TOKEN; the docker service runs the temporary agent):
- step:
name: Qmpass gate
image: python:3.12
services: [docker]
script:
- python3 -m pip install pipx
- python3 -m pipx run --spec qmpass-cli==0.2.0 qmpass-cli gate evaluate --release 10023 --stage PST-02
GitLab CI (masked CI/CD variable QMPASS_TOKEN; Docker-in-Docker for the agent):
qmpass-gate:
image: python:3.12
services: [docker:dind]
variables: { DOCKER_HOST: "tcp://docker:2375" }
script:
- python3 -m pip install pipx
- python3 -m pipx run --spec qmpass-cli==0.2.0 qmpass-cli gate evaluate --release 10023 --stage PST-02
Azure DevOps (secret variable QMPASS_TOKEN — secrets must be mapped into env; Microsoft-hosted
ubuntu-latest has pipx and Docker):
- script: |
pipx install qmpass-cli==0.2.0
qmpass-cli gate evaluate --release 10023 --stage PST-02
displayName: Qmpass gate
env:
QMPASS_TOKEN: $(QMPASS_TOKEN)
Jenkins (declarative; a secret-text credential qmpass-token; the agent needs Python 3.10+, pipx and Docker):
stage('Qmpass gate') {
environment {
QMPASS_TOKEN = credentials('qmpass-token')
}
steps {
sh 'pipx install qmpass-cli==0.2.0'
sh 'qmpass-cli gate evaluate --release 10023 --stage PST-02'
}
}
No Docker on the runner? Run the Qmpass agent on a machine your team controls and add --agent <name>.
The temporary agent runs on your runner, so it reaches whatever the runner reaches (preview deploys, internal URLs on self-hosted runners). Its token is issued for this evaluation only and is removed when the evaluation is done with it.
Metadata
Release files for qmpass-cli 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| qmpass_cli-0.2.0.tar.gz | 21.0 kB | Without provenance | Details for qmpass_cli-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| qmpass_cli-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for qmpass_cli-0.2.0-py3-none-any.whl |
Total release size: 37.2 kB
Release files / qmpass_cli-0.2.0.tar.gz
| Download URL | qmpass_cli-0.2.0.tar.gz |
|---|---|
| Size | 21.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eef89d107f8fa9bb14ed522f563bff80f04fe15214bb7e9045a4bb8de1c17744
|
|
BLAKE2b-256 checksum How to use checksums |
0f4d0dfb800f7a116e4c2e7eb1302495ea23f26668f5d0e16ae4ac756ffffd89
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.10
|
Release files / qmpass_cli-0.2.0-py3-none-any.whl
| Download URL | qmpass_cli-0.2.0-py3-none-any.whl |
|---|---|
| Size | 16.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ed2d36f71a514ec283b6be32ac51ae6ffb1c342be23534437ecb46dfcc829dc1
|
|
BLAKE2b-256 checksum How to use checksums |
2f10a40d59b08d79df88730c858f95dec4d610119f309375bd990827821cb76c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.10
|
Security for qmpass-cli 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.