Skip to content

Category: Tips

intro to the mattermost CLI

At work we have been building out our demo environments and looking to create a re-usable Github repo for deploying and configuring Mattermost. The aim is to automate as much as possible of the mattermost deployment. Mattermost can be configured using the API or the CLI. These are my adventures with the CLI….

The updates from the CLI are automatically written to the config.json. There are some considerations when changing settings:

  • Dotted Notation: you have to put the section of json file ahead of the config setting. Shown below as TeamSettings.ExperimentalDefaultChannels
  • Arrays: CLI accepts multiple values for array settings. In the example as Public-Channel01 PublicChannel-02
"ExperimentalDefaultChannels": []

sudo ./mattermost config set TeamSettings.ExperimentalDefaultChannels Public-Channel01 PublicChannel-02

"ExperimentalDefaultChannels": [
    "Public-Channel01",
    "PublicChannel-02"
]

I’ll will add to this post over time so it is a resource to keep coming back to.

But for now this is the story so far…

/remind me

My memory is not my strongest quality somebody told me once. To help with this Mattermost has a /remind plugin developed by one of the Mattermost community. This can be really useful as a prompt for your forgetful self or a friendly nudge to a co-worker.

If you want to see your options then type:

/remind help

If you want to make sure meeting notes get sent out after your call…

When you receive a notification you get prompted by the Remindbot with a new message in your UNREADS

You have options to complete or delete, and can even reschedule the reminder

To install the plugin go to https://integrations.mattermost.com and search for remind

A simple productivity tip to help you in your day.