Function: checkForUpdates()¶
checkForUpdates(
currentVersion):Promise\<UpdateInfo|null>
Defined in: cli/src/utils/version-check.ts:168
Check for updates automatically (respects cache). Called from preAction hook.
Parameters¶
currentVersion¶
string
The current CLI version
Returns¶
Promise\<UpdateInfo | null>
Update info if a newer version is available, null otherwise