@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 {
        checkForUpgrade(
            os?: SupportedOs,
            arch?: SupportedArch,
            installMethod?: InstallMethod,
        ): Promise<UpgradeCheckResult>;
        detectArch(): SupportedArch | undefined;
        detectInstallMethod(os: SupportedOs): Promise<InstallMethod | undefined>;
        detectOs(): SupportedOs | undefined;
        getUpgradeCheckResult(): Promise<UpgradeCheckResult>;
        upgrade(
            os?: SupportedOs,
            arch?: SupportedArch,
            installMethod?: InstallMethod,
        ): Promise<UpgradeResult>;
    }
    Index