45 lines
1.2 KiB
Plaintext
45 lines
1.2 KiB
Plaintext
# ---
|
|
# Mattermost Administration - mmctl command line tool
|
|
# ---
|
|
|
|
|
|
# see: https://docs.mattermost.com/manage/mmctl-command-line-tool.html
|
|
|
|
|
|
|
|
# Manage the credentials and authentication methods of remote Mattermost instances.
|
|
#
|
|
# Format
|
|
#
|
|
# mmctl auth login <instanceUrl> --name <namei-for-this-credentials>> --username <username> --password-file <fqfn>
|
|
# mmctl auth login <instanceUrl> --name <namei-for-this-credentials>> --username <username>
|
|
# mmctl auth login <instanceUrl>
|
|
#
|
|
# Examples
|
|
#
|
|
# /opt/mattermost/bin/mmctl auth login --name local-server https://mm-irights.oopen.de --username admin-irights
|
|
#
|
|
#
|
|
# this stores the credentials at ~/.config/mmctl/config
|
|
#
|
|
# This is done by command "mmctl auth login"
|
|
#
|
|
# Example (for site mm-irights.oopen.de)
|
|
#
|
|
# name: local-server
|
|
# username: admin-irights
|
|
# password: M6aHdhGh_I%9
|
|
# instanceUrl: https://mm-irights.oopen.de
|
|
#
|
|
/opt/mattermost/bin/mmctl auth login --name local-server https://mm-irights.oopen.de --username admin-irights
|
|
|
|
|
|
# List your defined credentials at ~/.config/mmctl/config
|
|
#
|
|
/opt/mattermost/bin/mmctl auth list
|
|
|
|
|
|
# Set credentilas named 'local-server' as active
|
|
#
|
|
/opt/mattermost/bin/mmctl auth set local-server
|