Skip to main content
Download the latest published mo release and replace the binary you are running.

Behavior

  1. Reads the latest version from the release manifest.
  2. Downloads the binary for your OS, CPU, and libc (the same selection the installer makes).
  3. Verifies the download against its published SHA-256 checksum.
  4. Renames the verified file over the current executable.
If any step fails, the existing binary is left untouched. When you are already on the latest release, the command reports that and exits 0.

Arguments

string
Install this exact version instead of the latest release, for example mo upgrade 1.4.2. Downgrades are allowed.

Upgrade prompt

When a newer release exists, interactive commands show an update notice and ask:
Answering yes runs the same upgrade in place; the current command then continues on the old version. The prompt does not appear in CI, without a TTY, with --json, on mo upgrade, mo version, mo skills, or mo licenses, or when NO_UPDATE_NOTIFIER or MOMENTIC_SKIP_UPGRADE_PROMPT is set. After it is shown once, it stays quiet for that version for 24 hours.

Notes

  • The command needs write access to the directory that holds mo (~/.local/bin by default). If the install directory is not writable, re-run the installer instead: curl -fsSL https://cli.momentic.ai/mo | sh.
  • mo upgrade only works on a released binary. A source checkout run through bun reports that it cannot self-update.