Skip to content

checkForUpdates()

PromptScript API


checkForUpdates(currentVersion): Promise<UpdateInfo | null>

Defined in: cli/src/utils/version-check.ts:219

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