Reference

gohealthcli raw

Fetch a single upstream Google Health API response and print the raw body to stdout. Useful for endpoint exploration without committing the response to the Health Archive.

First positional argument is endpoint <name> (for example endpoint getIdentity) or data-type <data-type> (for example data-type steps --from 2026-01-01 --to 2026-01-02). --from and --to constrain time ranges where the endpoint supports them; --page-size and --page-token drive pagination.

raw is provider-shaped on purpose — the JSON you see is what the provider returns, not the normalised shape the archive stores.

#Usage

gohealthcli raw <target> [<args>...]

#Flags

FlagTypeDefaultDescription
--configstringconfig file path
--dbstringSQLite Health Archive path
--fromstringinclusive time-range start (where supported by the endpoint)
--tostringexclusive time-range end (where supported by the endpoint)
--page-sizeintpagination page size (positive integer; where supported by the endpoint)
--page-tokenstringpagination page token from a prior response