dhis2 command-line interface (Typer) — mounts plugins from dhis2w-core.
Project description
dhis2w-cli
Typer console script dhis2 for working with DHIS2 instances from the shell. Discovers plugins from dhis2w-core — sixteen top-level domains covering metadata, data, analytics, tracker, users, routes, files, messaging, apps, doctor, and developer tools.
Install
# Drops `dhis2` on $PATH
uv tool install dhis2w-cli
# With Playwright UI automation (browser screenshots, OIDC login, PAT minting)
uv tool install 'dhis2w-cli[browser]'
playwright install chromium # one-time, after the install above
# Update later
uv tool upgrade dhis2w-cli
Or run on demand without installing:
uvx --from dhis2w-cli dhis2 --help
Configure
The CLI reads a profile from .dhis2/profiles.toml (project) or ~/.config/dhis2/profiles.toml (user). One-shot bootstrap:
dhis2 profile bootstrap mywork
Or set env vars and skip the profile system entirely:
export DHIS2_URL=https://dhis2.example.org
export DHIS2_PAT=d2p_...
dhis2 system info
Surface
dhis2 analytics DHIS2 analytics queries.
dhis2 apps DHIS2 apps — /api/apps + /api/appHub.
dhis2 browser Playwright UI automation (only with [browser] extra).
dhis2 data DHIS2 data values (aggregate + tracker).
dhis2 dev Developer/operator tools.
dhis2 doctor Probe a DHIS2 instance for known gotchas + requirements.
dhis2 files Manage DHIS2 documents + file resources.
dhis2 maintenance DHIS2 maintenance (tasks, cache, integrity, cleanup, refresh).
dhis2 messaging DHIS2 internal messaging.
dhis2 metadata DHIS2 metadata inspection.
dhis2 profile Manage DHIS2 profiles.
dhis2 route DHIS2 integration routes.
dhis2 system DHIS2 system info.
dhis2 user DHIS2 user administration.
dhis2 user-group DHIS2 user-group administration.
dhis2 user-role DHIS2 user-role administration.
dhis2 --help for the full tree; dhis2 <group> --help for each.
Documentation
Full CLI reference: https://winterop-com.github.io/dhis2w-utils/cli-reference/.
dhis2w-cli is one member of the dhis2w-utils workspace. The MCP server (dhis2w-mcp) exposes the same plugin surface as MCP tools.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dhis2w_cli-0.10.0.tar.gz.
File metadata
- Download URL: dhis2w_cli-0.10.0.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d38615445ee349d017220b223858fbfd89a9903d7c13983b21903feaea62ff1a
|
|
| MD5 |
0155b1afc177148f9d3e00931b6fc7d4
|
|
| BLAKE2b-256 |
4ba6d0dc72a99716d902529d4022cce435b8e7d69b2304ced934831cc4696f97
|
Provenance
The following attestation bundles were made for dhis2w_cli-0.10.0.tar.gz:
Publisher:
pypi-publish.yml on winterop-com/dhis2w-utils
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dhis2w_cli-0.10.0.tar.gz -
Subject digest:
d38615445ee349d017220b223858fbfd89a9903d7c13983b21903feaea62ff1a - Sigstore transparency entry: 1518626320
- Sigstore integration time:
-
Permalink:
winterop-com/dhis2w-utils@2b1cfabf39eed69d2b7ff8f2f3106e2c7764e64f -
Branch / Tag:
refs/tags/v0.10.0 - Owner: https://github.com/winterop-com
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@2b1cfabf39eed69d2b7ff8f2f3106e2c7764e64f -
Trigger Event:
push
-
Statement type:
File details
Details for the file dhis2w_cli-0.10.0-py3-none-any.whl.
File metadata
- Download URL: dhis2w_cli-0.10.0-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d6236114b3c2e1c58d8d8ac16514539861b8fce0bab8d6129ad5d27bf76a1eaf
|
|
| MD5 |
329d3c8acb614f2fe05511ca8b296620
|
|
| BLAKE2b-256 |
b3377a872a647e514722881d7ebfe570cb4f30a29d4bce1f03df9a92d09168c5
|
Provenance
The following attestation bundles were made for dhis2w_cli-0.10.0-py3-none-any.whl:
Publisher:
pypi-publish.yml on winterop-com/dhis2w-utils
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dhis2w_cli-0.10.0-py3-none-any.whl -
Subject digest:
d6236114b3c2e1c58d8d8ac16514539861b8fce0bab8d6129ad5d27bf76a1eaf - Sigstore transparency entry: 1518626363
- Sigstore integration time:
-
Permalink:
winterop-com/dhis2w-utils@2b1cfabf39eed69d2b7ff8f2f3106e2c7764e64f -
Branch / Tag:
refs/tags/v0.10.0 - Owner: https://github.com/winterop-com
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@2b1cfabf39eed69d2b7ff8f2f3106e2c7764e64f -
Trigger Event:
push
-
Statement type: