Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dhis2w_cli-0.7.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dhis2w_cli-0.7.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file dhis2w_cli-0.7.0.tar.gz.

File metadata

  • Download URL: dhis2w_cli-0.7.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for dhis2w_cli-0.7.0.tar.gz
Algorithm Hash digest
SHA256 c2bbd60b950a5a1cb664b0df90a2631ce7ec58898a1a4a29c1013e11b9011b1a
MD5 7b882d0963dd634588e6c19efa3e78b0
BLAKE2b-256 729f60d0a2f8fa001a873eeee8cd4dbcb82651a8283c7343907d17d1414a7190

See more details on using hashes here.

Provenance

The following attestation bundles were made for dhis2w_cli-0.7.0.tar.gz:

Publisher: pypi-publish.yml on winterop-com/dhis2w-utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dhis2w_cli-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: dhis2w_cli-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for dhis2w_cli-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ee1a734c3abbaab8a8a10ed18373cf646ff599a61367de65fda52d066a431fe3
MD5 a3a6b11177676ce5ebf6e65cefa83229
BLAKE2b-256 213c45b7dd6df3b5e85cec76bd6e964d979d9ace5b3c949407f1b813dc64f090

See more details on using hashes here.

Provenance

The following attestation bundles were made for dhis2w_cli-0.7.0-py3-none-any.whl:

Publisher: pypi-publish.yml on winterop-com/dhis2w-utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page