ReadonlyrestartedThe version of the CLI which restarted this process after an automatic upgrade, or
undefined if this process was not started by such a restart.
Check whether a newer version of the CLI is available.
The operating system and CPU architecture are always the detected values.
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 most recently cached UpgradeCheckResult without performing a version check.
the cached UpgradeCheckResult, or undefined if no result is cached. Never
rejects.
Returns the result of the version check that was started eagerly once this service's dependencies were set (or starts one now, with no install method override, if none has started yet).
the UpgradeCheckResult. Never rejects.
Performs a version check now and stores its result in the cache read by getCachedUpgradeCheckResult.
the fresh UpgradeCheckResult. Never rejects.
Upgrade the CLI to the latest available version.
The operating system and CPU architecture are always the detected values.
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.