version
Show the installed CLI version, check npm for updates, or reset the update-check cache.
print version
bash
gform version
gform -V # global short flag
gform version --json-V works anywhere except where it would collide with a subcommand's own -V (rare).
check for updates
bash
gform version --check
gform version --check --jsonFetches the latest published version from npm and compares. Respects GFORM_NO_UPDATE_CHECK=1 to skip network.
JSON output:
json
{
"current": "0.x.x",
"latest": "0.x.y",
"updateAvailable": true
}gform also throttles background update checks — results cache under $GFORM_HOME/state/.
reset update cache
bash
gform version --reset
gform version --reset --jsonClears cached update-check state. Useful when debugging stale "update available" banners or forcing a fresh --check.
state cache location
text
$GFORM_HOME/state/Holds version-check throttle data — not form configs or artifacts. See portable.md.
gotchas
--checkneeds network; offline runs print a friendly error.- Background check on startup is silent unless an update exists (and not suppressed).
- Version command does not upgrade gform — use your package manager (
pnpm i -g .,npm i -g, etc.). gform doctorincludes Node/Playwright versions but not npm update status — useversion --checkfor that.
related
- doctor.md — host health
- guide.md — install and upgrade
- portable.md —
$GFORM_HOMElayout