mdm upgrade¶
Upgrade the mdm CLI binary to the latest release.
Usage¶
Checks the latest release on GitHub, downloads the binary for your platform, verifies its SHA256 checksum, and replaces the running binary in place. No separate install step required.
Aliases: update-cli, self-update
Flags¶
| Flag | Description |
|---|---|
--stable |
Upgrade to the latest stable release (default behavior; mutually exclusive with --beta) |
--beta |
Upgrade to the latest beta / prerelease tag instead of the stable release |
mdm upgrade skips prereleases by default because GitHub's /releases/latest API excludes them. Pass --beta to opt in to release candidates and other prerelease tags.
What it does¶
- Queries the GitHub releases API for the latest version.
- Compares it against the currently running version. If already up to date, exits.
- Downloads the platform-specific binary and the
sha256sums.txtchecksum file. - Verifies the SHA256 digest before writing anything to disk.
- Replaces the current executable atomically (via rename on Unix, a background batch script on Windows).
Platform support¶
| OS | Architectures |
|---|---|
| Linux | x64, arm64 |
| macOS | x64, arm64 (Apple Silicon) |
| Windows | x64 |
Examples¶
Already up to date¶
If you are on the latest version:
After upgrading¶
On Unix systems the binary is replaced immediately. Restart your shell or run mdm --version to confirm the new version is active.
On Windows, the replacement happens in a background process after the current command exits. PowerShell or Command Prompt may need to be restarted.
Manual download¶
If mdm upgrade cannot reach GitHub (air-gapped environment, corporate proxy, etc.), download the binary for your platform directly from the releases page and replace the binary manually.