Skip to content

mm-core commands

Everyday commands need no sudo or Administrator window, except where the table says so. (host) marks commands that need a host, or an agent paired with one.

Command
install [--role R] [--pair HOST CODE] Install from the downloaded file and start the service; optionally pick a role and pair at once
update Replace the installed mm-core with this one, keeping everything
uninstall [--purge] Remove mm-core; --purge also removes its config, identity, pairings and history
status Whether the service is running, and where its config and data are
version The running version, name, ID and role

Run install and update from the downloaded file. They need sudo on Linux and an Administrator PowerShell on Windows; uninstall does too.

Command
role agent|host|both Set this machine’s role
name <name> Rename this machine
config Print the config.toml mm-core reads
open Open the dashboard in this machine’s browser
dashboard on|off Let browsers open the dashboard, or not
os-events [on|off] This machine’s OS log errors as events: show, or turn on or off
os-events add|remove <process> macOS: read this process’s errors too, or stop
syslog [on|off] The syslog listener: show, or turn on or off
syslog port <number> Listen on this port instead of 5514
exec This machine’s own scripts and how each is doing
exec test <command> [args…] Run a script once, as you, and show what it would report
send [--source S] [--severity SEV] [--title T] [message] Send an event to the fleet’s hosts; with no message, each line piped in is one
Command
pairing code (host) Open a 5-minute pairing window and print its code
hosts Hosts found on the network
pair <host> <code> Pair with a host, by its name or address
peers List pairings
revoke <peer> Remove a pairing (name, short ID or full ID)
fleet export Print this fleet as a fleet.toml
fleet status <file> Compare fleet.toml with this machine’s pairings
fleet apply <file> [--prune] Make this machine match fleet.toml
Command
machines (host) Every machine: online, CPU, memory, temperature, network
watch <machine> (host) Live values from one machine, every second; Ctrl-C to stop
alerts (host) The alert rules, numbered, and what’s firing now
alerts add <metric|offline> [--above N | --below N] [--for MINUTES] [--machine M]… [--severity S] (host) Add a rule
alerts remove <number> (host) Remove a rule
events delete [filters] [--yes] (host) Delete stored events that match: --machine, --source, --origin os|program, --at-least, --at-most, --older-than DAYS, --from, --to, --search
Command
set-password Set the remote access password and turn remote access on
remote [on|off] Show remote access (addresses and certificate fingerprint), or turn it on or off