version
Print the current version of fns-cli and check for available updates.
Usage
fns-cli version [flags]Flags
| Flag | Description |
|---|---|
-c, --check | Check for a newer version and print update state details |
-h, --help | Show 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 —
--checkforces a fresh check and prints the raw state. - If you see the update notice, run
fns-cli updateto install the latest release. - Development builds (installed via
go installorgo build) show an info notice and report version0.0.0-dev.
