CLI
Upgrade
Force a CLI update check and install the latest version
Updates the CLI to the latest version. Works only when installed via npm i -g @expensicat/cli; for other install methods (direct binary, Homebrew, etc.) it prints the appropriate reinstall instructions and exits non-zero.
expensicat upgradeTypical output when a newer version is available:
◐ Checking latest version…
◐ Installing @expensicat/cli@0.2.0…
✔ Updated: 0.1.0 → 0.2.0When already current:
Already on latest (0.2.0).When to use it
- You've disabled the background auto-update (
auto_update = falseorEXPENSICAT_DISABLE_AUTOUPDATER=1) and want to pull changes manually. - You want to update right now instead of waiting for the next launch.
- You're installing for the first time on a shared environment and want to confirm the version.
Related
- See Configuration → Updating for how the background auto-update works and how to disable it.
- See Installation → Staying up to date for platform-specific update paths.