I understand the mistake. Mattermost is installed on qnap, in docker format, therefore to access it, you must first start the docker instance with:
system-docker exec -it mattermost_app_1 /bin/sh
Then, you can use the mattermost commands found with the command:
bin/platform -help
Hope this helps someone else