@flowscripter/dynamic-cli-framework-api
    Preparing search index...

    Interface UpgradeService

    Service allowing a Command to check for and install a newer version of the CLI itself.

    interface UpgradeService {
        restartedFromVersion: string | undefined;
        checkForUpgrade(installMethod?: InstallMethod): Promise<UpgradeCheckResult>;
        detectArch(): SupportedArch | undefined;
        detectInstallMethod(os: SupportedOs): Promise<InstallMethod | undefined>;
        detectOs(): SupportedOs | undefined;
        getCachedUpgradeCheckResult(): Promise<UpgradeCheckResult | undefined>;
        getUpgradeCheckResult(): Promise<UpgradeCheckResult>;
        refreshUpgradeCheckCache(): Promise<UpgradeCheckResult>;
        upgrade(installMethod?: InstallMethod): Promise<UpgradeResult>;
    }
    Index
    restartedFromVersion: string | undefined

    The version of the CLI which restarted this process after an automatic upgrade, or undefined if this process was not started by such a restart.