Skip to content

"gitlab-" command for Mattermost command line

Mattermost 1.3 that ships with Gitlab 8.3 includes a commandline tool for managing certain parts of Mattermost that can't be managed from the web interface.

Currently, using this tool requires a lot of boilerplate on the command line. For example, just to see the version number of the version that is running requires this:

sudo -u mattermost /opt/gitlab/embedded/bin/mattermost -config=/var/opt/gitlab/mattermost/config.json -version

Contrast this with the gitlab-ctl command which replaces long nasty command lines (like sudo -u git -H bundle exec rake gitlab:setup RAILS_ENV=production) with a much simpler equivalent (e.g. sudo gitlab-rake gitlab:setup, should do the same as the previous command).

It would be nice if we had a similar gitlab-mattermost command so we could run things like sudo gitlab-mattermost -version to do the equivalent of the line above.

(Note: I'm just using version as a simple example. The most common practical use of the Mattermost command line is for managing users on teams.)

Edited by 🤖 GitLab Bot 🤖