mmctl is a remote CLI tool that lets you manage your Mattermost instance from the terminal.
mmctl
The project's documentation can be accessed within the the Mattermost documentation.