Skip to main content

dhis2w-cli

Typer console script d2w 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 `d2w` on $PATH
uv tool install dhis2w-cli

# With the security posture scanner (the dhis2w-security pack mounts `d2w security`)
uv tool install 'dhis2w-cli[security]'

# 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

# With FHIR Implementation Guide tooling (the dhis2w-fhir pack mounts `d2w fhir`);
# add `serve` for the capture facade behind `d2w fhir serve`
uv tool install 'dhis2w-cli[fhir]'
uv tool install 'dhis2w-cli[fhir,serve]'

# Update later
uv tool upgrade dhis2w-cli

Extras combine ('dhis2w-cli[fhir,security]'). A pack's command without the pack installed - d2w fhir, d2w browser, d2w security - prints the install command that adds it.

Or run on demand without installing:

uvx --from dhis2w-cli d2w --help

Configure

The CLI reads a profile from .dhis2/profiles.toml (project) or ~/.config/dhis2/profiles.toml (user). One-shot bootstrap:

d2w profile bootstrap mywork

Or set env vars and skip the profile system entirely:

export DHIS2_URL=https://dhis2.example.org
export DHIS2_PAT=d2p_...
d2w system info

Surface

d2w analytics    DHIS2 analytics queries.
d2w apps         DHIS2 apps — /api/apps + /api/appHub.
d2w browser      Playwright UI automation (only with [browser] extra).
d2w data         DHIS2 data values (aggregate + tracker).
d2w dev          Developer/operator tools.
d2w doctor       Probe a DHIS2 instance for known gotchas + requirements.
d2w fhir         FHIR IG generation, serving and capture (only with [fhir] extra).
d2w files        Manage DHIS2 documents + file resources.
d2w maintenance  DHIS2 maintenance (tasks, cache, integrity, cleanup, refresh).
d2w messaging    DHIS2 internal messaging.
d2w metadata     DHIS2 metadata inspection.
d2w profile      Manage DHIS2 profiles.
d2w route        DHIS2 integration routes.
d2w system       DHIS2 system info.
d2w user         DHIS2 user administration.
d2w user-group   DHIS2 user-group administration.
d2w user-role    DHIS2 user-role administration.

d2w --help for the full tree; d2w <group> --help for each.

Documentation

Full CLI reference: https://winterop-com.github.io/dhis2w/cli-reference/.

dhis2w-cli is one member of the dhis2w workspace. The MCP server (dhis2w-mcp, a plugin pack in its own repository) exposes the same plugin surface as MCP tools.

Metadata

Release files for dhis2w-cli 1.33.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dhis2w-cli 1.33.0
File Size Uploaded Provenance
dhis2w_cli-1.33.0.tar.gz 7.6 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for dhis2w-cli 1.33.0
File Interpreter ABI Platform
dhis2w_cli-1.33.0-py3-none-any.whl Python 3 none any Details

Total release size: 16.4 kB

Release files / dhis2w_cli-1.33.0.tar.gz

Download URL dhis2w_cli-1.33.0.tar.gz
Size 7.6 kB
Tags Source
SHA-256 checksum
How to use checksums
faba3c6b8bb8612f096d42cbcdd99d8e78310b62bbe763d0e53b168e9c243b0a
BLAKE2b-256 checksum
How to use checksums
174fa1f66591ffeec5d0b37e2b5912c62dd5fb4adb5d71557e9c7fe7d368d203
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.

Transparency log

Release files / dhis2w_cli-1.33.0-py3-none-any.whl

Download URL dhis2w_cli-1.33.0-py3-none-any.whl
Size 8.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b04bb3651913dcbab28501fe7d7c336db1a60f418d09735d77bbe6a0594d506c
BLAKE2b-256 checksum
How to use checksums
32e80b77ccf8176a51b3932b404305776e04537a7c24b582359c24084baa7504
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.

Transparency log

Security for dhis2w-cli 1.33.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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for dhis2w_cli-1.33.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 24, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

1.33.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page