version command displays the current ap-query version and checks if a newer release is available on GitHub.
Usage
Output
Up to date
Update available
Version formats
The version string follows semantic versioning:Release builds
Format:v0.3.0, v1.0.0, v1.2.3
Built from GitHub releases. These can be updated with ap-query update.
Development builds
Format:dev
Built from source without a version tag. These cannot be auto-updated with ap-query update (use --force to replace with a release).
go install builds
Format: varies (often includes commit hash) Installed viago install. Update with go install github.com/jerrinot/ap-query@latest instead of ap-query update.
Checking for updates
Theversion command queries the GitHub API for the latest release:
The update check times out after 3 seconds. If GitHub is unreachable, the command still prints your current version without the update notification.
Root command version
You can also get the version from the root command:ap-query version.
CI/automation usage
Useversion in scripts to verify installation:
Network requirements
The update check requires internet access to query:See also
- update - Download and install the latest release
- Installation - Initial installation instructions