Skip to content

version

Print the current version of fns-cli and check for available updates.

Usage

fns-cli version [flags]

Flags

FlagDescription
-c, --checkCheck for a newer version and print update state details
-h, --helpShow help

Output

Always prints:

fns-cli <version> (commit: <hash>, built: <date>)

If a newer version is available (detected from the cached state), it also prints:

✨ Update available: <version>
Run 'fns-cli update' to install it.

With --check, additionally prints:

  • Latest known version
  • Version checked against
  • Timestamp of last check

Tips

  • Version checks run in the background automatically — --check forces a fresh check and prints the raw state.
  • If you see the update notice, run fns-cli update to install the latest release.
  • Development builds (installed via go install or go build) show an info notice and report version 0.0.0-dev.