tmh, the TeachMeHIPAA CLI

tmh events tail

Watch the Organization’s Events as they happen, optionally forwarding them to a local endpoint

Synopsis

Watch the Organization’s Events as they happen, optionally forwarding them to a local endpoint.

tail polls the event log and resumes where it last stopped for this profile and Organization. The first run starts with the next new Event, unless –from-start or –after says otherwise.

With –forward-to, each Event is POSTed to your endpoint signed exactly like a TeachMeHIPAA Delivery, but with this profile’s local Signing secret, so your SDK’s constructEvent verifies it. Press Ctrl-C to stop.

tmh events tail [flags]

Options

      --after string        start after this Event id instead of where the last tail stopped
      --forward-to string   URL to POST each Event to, such as http://localhost:3000/webhooks
      --from-start          start from the oldest Event in the log (the last 30 days)
  -h, --help                help for tail
      --interval duration   how often to poll the event log (default 2s)
      --print-secret        print the local Signing secret and exit
      --types strings       only show these Event types, comma-separated

Options inherited from parent commands

      --idempotency-key string   Idempotency-Key for the write, instead of a generated one
      --live                     use the "live" profile
      --max-retries int          times to retry a transient failure of a request that is safe to replay (default 2)
      --profile string           profile to use: "sandbox" (default) or "live"
      --show-headers             print each HTTP response's status and headers to stderr
      --verbose                  print method, path, status, latency and request id of each HTTP attempt to stderr

SEE ALSO