doctor (command)
Host health check — layout, browsers, library, and saved auth metadata. Fast by default; optional live probes.
For full semantics of each check and exit codes, see doctor.md.
quick check (default)
bash
gform doctor
gform doctor --jsonReads disk only — no browser, no Google requests:
- Node + Playwright versions,
$GFORM_HOMEwritable - layout dirs (forms, artifacts, auth, browsers, history)
- library form count + last history row
- browser inventory (ready / found / missing, ★ default)
- auth profiles with last saved verify status
Exit code 1 if structural issues are found.
live browser probe
bash
gform doctor --browser
gform doctor --browser chromeHeadless launch+close (same as gform browsers check). No id → uses browsers default, else first ready target.
Fails with a fix hint (gform browsers setup <id>) when launch breaks.
live auth verify
bash
gform doctor --auth
gform doctor --auth --headless
gform doctor --auth --browser --headlessRuns auth verify for every profile — updates meta.json with fresh verdicts.
| outcome | doctor treats as |
|---|---|
| ok | pass |
| invalid | error — recreate profile |
| inconclusive | warning — retry, not logout |
Combine with --browser when debugging auth + launch together.
when to run doctor
| situation | flags |
|---|---|
| fresh install / new machine | gform doctor |
| auth create keeps failing | gform doctor --browser |
--auth runs suddenly fail | gform doctor --auth |
| CI preflight | gform doctor --json |
after gform clean | gform doctor |
gotchas
- Default doctor does not hit the network — saved
invalidmay be stale until--auth. --authopens a browser per profile (headed unless--headless).- Browser probe failure does not auto-fix — follow setup hints.
- JSON output includes the full
issues[]array for scripting.
related
- doctor.md — detailed check reference
- auth.md — profile commands
- browsers.md — setup and default
- version.md — CLI version and updates
- portable.md —
$GFORM_HOMElayout