1
0
Fork
You've already forked mattermost-utils
0
A collection of utilities for Mattermost
  • Java 100%
Find a file
2022年05月23日 17:03:09 +02:00
gradle/wrapper Initial commit 2020年04月08日 15:01:42 +02:00
src/main/java/eu/fthevenet/mattermost Use user names instead of emails as id for avatar service 2022年05月23日 17:03:09 +02:00
.gitignore Initial commit 2020年04月08日 15:01:42 +02:00
azure-pipelines.yml Changed gitHubConnection 2020年04月09日 17:01:21 +02:00
build.gradle Added white/black list from file to set-avatar command 2020年04月14日 19:25:47 +02:00
CHANGELOG.md Added CI config 2020年04月09日 16:48:26 +02:00
gradlew Initial commit 2020年04月08日 15:01:42 +02:00
gradlew.bat Initial commit 2020年04月08日 15:01:42 +02:00
LICENSE.md New commands, error checks, license 2020年04月08日 18:42:28 +02:00
NOTICE.md New commands, error checks, license 2020年04月08日 18:42:28 +02:00
README.md Fixed markdown syntax in README 2020年04月09日 17:30:15 +02:00
settings.gradle New commands, error checks, license 2020年04月08日 18:42:28 +02:00
UNRELEASED.md Updated README.md 2020年04月09日 17:28:04 +02:00

mattermost-utils

Build Status

A collection of utilities for Mattermost

Usage

Build or download the mattermost-utils jar file and start with the following command line, using Java 11 or higher:

java -jar mattermost-utils-x.x.jar

Append the name of a command and the required parameters:

Usage: mattermost-utils [-hV] [COMMAND]
A collection of utilities for Mattermost
 -h, --help Show this help message and exit.
 -V, --version Print version information and exit.
Commands:
 set-avatar, sa Update users' profile pictures from an avatar service.
 who-am-i, me Display info on the authenticated user.
 post-message, msg Post a message to a channel.

The following commands are available:

set-avatar
Usage: mattermost-utils set-avatar [-dfhvV] [-a=<avatarServiceUrl>]
 [-t=<token>] [-u=<mattermostUrl>]
 [-e=<emails>]...
set users avatar
 -a, --avatar-service-url=<avatarServiceUrl>
 The URL to the avatar service
 -d, --dry-run Dry run: profile images won't actually be updated
 -e, --user-emails=<emails>
 List of user emails to explicitly update
 -f, --force Force update avatar even if it had been setup by the
 user
 -h, --help Show this help message and exit.
 -t, --token=<token> API Access token
 -u, --url=<mattermostUrl>
 Mattermost address
 -v, --verbose Display detailed info
 -V, --version Print version information and exit.
who-am-i
Usage: mattermost-utils who-am-i [-hvV] [-t=<token>] [-u=<mattermostUrl>]
Display info on the authenticated user.
 -h, --help Show this help message and exit.
 -t, --token=<token> API Access token
 -u, --url=<mattermostUrl>
 Mattermost address
 -v, --verbose Display detailed info
 -V, --version Print version information and exit.
post-message
Usage: mattermost-utils post-message [-hvV] [-c=<channelId>] [-m=<messageText>]
 [-t=<token>] [-u=<mattermostUrl>]
Post a message to a channel.
 -c, --channel-id=<channelId>
 Channel ID
 -h, --help Show this help message and exit.
 -m, --message-text=<messageText>
 Channel ID
 -t, --token=<token> API Access token
 -u, --url=<mattermostUrl>
 Mattermost address
 -v, --verbose Display detailed info
 -V, --version Print version information and exit.