Hi there,
I just want to mention that we have the same issues here. We are also running the same mattermost version on a gitlab installation and would like to use the CLI.
I'll be happy to answer questions.
Please update when a solution arises.
Thanks