Skip to content

CLI Reference ​

MXHook includes a command-line interface for starting the server and managing resources.

Installation ​

The CLI is part of the mxhook binary. See Binary installation for download and build instructions.

Commands ​

CommandDescription
startStart MXHook services (SMTP + API)
domainManage domains
routeManage routing rules
logsTail message lifecycle log
replayRe-deliver a message
statusShow health of all components

Common Flags ​

Most commands that interact with the API accept these flags:

FlagDefaultDescription
--api-urlhttp://localhost:8080MXHook API URL
--api-key—API authentication key

Usage ​

bash
mxhook <command> [flags]

Released under the Apache 2.0 License.