Skip to content

forceCheckForUpdates()

PromptScript API


forceCheckForUpdates(currentVersion): Promise<{ error: boolean; info: UpdateInfo | null; }>

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

Force check for updates (ignores cache). Used by the update-check command.

Parameters

currentVersion

string

The current CLI version

Returns

Promise<{ error: boolean; info: UpdateInfo | null; }>

Update info with check result