Check whether a newer version of the CLI is available.
Optionalos: SupportedOs
optional SupportedOs override, defaults to the detected value.
Optionalarch: SupportedArch
optional SupportedArch override, defaults to the detected value.
OptionalinstallMethod: InstallMethod
optional InstallMethod override, defaults to the detected value.
the UpgradeCheckResult. Runs to completion. Never rejects.
Detect the CPU architecture the CLI is currently running on.
the detected SupportedArch, or undefined if it is not supported.
Detect the mechanism by which the CLI was installed for the specified operating system.
the SupportedOs to detect the install method for.
the detected InstallMethod, or undefined if it could not be determined.
Detect the operating system the CLI is currently running on.
the detected SupportedOs, or undefined if it is not supported.
Returns the result of the version check that was started eagerly once this service's dependencies were set (or starts one now, with default/no-override detection, if none has started yet).
the UpgradeCheckResult. Never rejects.
Upgrade the CLI to the latest available version.
Optionalos: SupportedOs
optional SupportedOs override, defaults to the detected value.
Optionalarch: SupportedArch
optional SupportedArch override, defaults to the detected value.
OptionalinstallMethod: InstallMethod
optional InstallMethod override, defaults to the detected value.
the UpgradeResult. Never rejects.
Service allowing a Command to check for and install a newer version of the CLI itself.