Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Covers shared ghealth CLI prerequisites: OAuth setup, credential storage, headless authentication, global flags and command structure.
Use this skill ↓55% 73%+18 ptsof test cases passed
Passed 16 of 22 test cases with the skill, and 12 of 22 without it.
When parsing ghealth JSON responses from data read commands (such as list or daily-rollup), under which standard top-level JSON object key are the output rows located?
Identifies `dataPoints` as the array key containing result rows
3 of 3 safety checks passed
ghealth setup # interactive wizard, run once
Six steps: GCP project ID, OAuth client_secret JSON (Desktop application), Health API enable, scope selection, browser-based OAuth, save profile.
Scriptable (skips prompts):
ghealth setup \
--project-id my-project \
--client-secret ~/Downloads/client_secret_123.json \
--scopes-preset readonly \
--skip-enable-api \
--no-prompt
Add --non-interactive-auth to skip the browser step and finish later with ghealth auth login --complete <code>.
All under ~/.config/ghealth/ (override with GHEALTH_CONFIG_DIR):
| File | Contents | Mode |
|---|---|---|
client_secret.json | Your GCP OAuth client | 0600 |
credentials.json | Access + refresh tokens (plaintext JSON) | 0600 |
pending_auth.json | In-progress non-interactive flow state | 0600 |
config.toml | Active profile (project, scopes, format) | 0600 |
| Method | Usage |
|---|---|
| Stored credentials | ghealth auth login (default after setup) |
| Headless (no browser) | ghealth auth login --non-interactive → click URL → ghealth auth login --complete <code> |
Next to this one in the catalogue, plus more from the same author.