Skip to content

upgrade

Synopsis

The upgrade command provides a set of tools for upgrading Olares and checking upgrade readiness and compatibility.

bash
olares-cli upgrade <subcommand> [options]

Subcommands

SubcommandAliasesDescription
precheckPrechecks Olares for upgrade.
speccurrent-specGets the upgrade spec of the current CLI version.
viableDetermines whether upgrade can be directly performed upon a base version.

Global options

These options apply to the main upgrade command and are inherited by its subcommands where applicable.

OptionShorthandUsageRequiredDefault
--base-dir-bSets the base directory for Olares packages.No$HOME/.olares
--help-hDisplays help information.NoN/A
--version-vSets the target Olares version to upgrade to. For example, 1.10.0, 1.10.0-20241109.NoN/A

Options for viable

OptionShorthandUsageRequiredDefault
--base-bBase version to check.NoCurrent Olares system version

Option conflict

The -b shorthand is used by the parent command for --base-dir. However, when running upgrade viable, -b specifically refers to --base.

Examples

bash
# Check whether the current system can be upgraded directly
olares-cli upgrade viable

# Check upgrade viability from a specific base version
olares-cli upgrade viable --base 1.9.0

# Run pre-upgrade checks
olares-cli upgrade precheck

# View the upgrade spec of the current CLI
olares-cli upgrade spec