Skip to content

Installation

mdm is a single, statically-linked Go binary with no runtime dependencies.

One-line install

curl -fsSL https://raw.githubusercontent.com/sethcarney/mdm/main/install.sh | bash
irm https://raw.githubusercontent.com/sethcarney/mdm/main/install.ps1 | iex

Both installers place the binary at ~/.local/bin/mdm and warn if that directory isn't on your PATH.

Install to a custom directory

Set INSTALL_DIR before running the installer:

INSTALL_DIR=/usr/local/bin curl -fsSL https://raw.githubusercontent.com/sethcarney/mdm/main/install.sh | bash

Other methods

go install github.com/sethcarney/mdm@latest

This installs to $GOPATH/bin. The version reported by mdm --version will be dev for go install builds — released binaries carry the real tag.

Grab a prebuilt binary for Linux, macOS, or Windows (x64 + ARM64) from the GitHub Releases page, then move it onto your PATH.

git clone https://github.com/sethcarney/mdm
cd mdm
make build      # compiles to ./mdm
make install    # go install . → $GOPATH/bin

Verify the install

mdm --version
mdm --help

Shell completion

mdm ships completion scripts for bash, zsh, fish, and PowerShell:

# Print a script to stdout
mdm completion zsh

# Or write it into your shell rc automatically
mdm completion install

Keeping mdm up to date

mdm upgrade            # download and replace the binary with the latest release
mdm upgrade --beta     # opt into the latest prerelease

See the upgrade guide for details, and uninstall to remove the binary.

Next steps