tmh, the TeachMeHIPAA CLI

tmh documentation

tmh is the TeachMeHIPAA Developer API on the command line. The topic pages below open with a synopsis of the commands they cover; prose follows. New here: install, then login, then recipes.

Topics

Page Covers
install go install, make build, release channels, checksum verification, Docker, tmh completion
login tmh login, logout, whoami; the sandbox and live profiles; CI credentials; Scopes; public operations
requests Positional ids, flags, -d and --data, --if-match, idempotency keys, retries, raw get/post/put/patch/delete, tmh open
output JSON on stdout, pages, --all, --ndjson, --verbose, --show-headers
operations --wait, CSV exports with -o, Certificate PDFs, CSV imports with --preview, batch changes
events events list, events tail --forward-to, events resend, the local Signing secret and signature, Webhook subscriptions, Test deliveries
exit-codes Exit codes 0 to 7 and 130, error output, request ids, case $?
environment Environment variables, global flags, config.toml and state.toml, privacy, the version check
recipes jq pipelines, CSV files, while read loops over pages, tailing Events, CI gates

Reference

Examples

Scripts in examples/. Each reads TMH_CLIENT_ID and TMH_CLIENT_SECRET and targets the Sandbox:

Script Does
quickstart.sh Prints the Compliance summary and five Learners
sync-roster.sh Syncs a roster CSV with learners upsert-by-external-id
export-certificates.sh Exports Certificates to CSV with --wait -o, optionally with PDFs
webhook-dev-loop.sh Forwards Events to a local handler with events tail --forward-to

Design records

These explain how tmh is built and why. Using it doesn’t need them.