Skip to content

version ​

Show the installed CLI version, check npm for updates, or reset the update-check cache.

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 --json

Fetches 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 --json

Clears 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 ​

  • --check needs 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 doctor includes Node/Playwright versions but not npm update status — use version --check for that.