# --- # 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 --name > --username --password-file # mmctl auth login --name > --username # mmctl auth login # # 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