A module like https://github.com/sindresorhus/latest-version could be used to query the latest CLI version, and if it differs the user could be prompted to update.