# Command Line Interface

**URL:** https://forum.mattermost.com/c/trouble-shoot/cli/34.md

[Latest](https://forum.mattermost.com/latest.md) · [Categories](https://forum.mattermost.com/categories.md)

---

## [About the Command Line Interface category](https://forum.mattermost.com/t/about-the-command-line-interface-category/3643)

<div class="topic-metadata">

**Author:** [@it33](https://forum.mattermost.com/u/it33)\
**Replies:** 0

</div>

---

## [Trying to Delete User Accounts](https://forum.mattermost.com/t/trying-to-delete-user-accounts/25300)

<div class="topic-metadata">

**Author:** [@Ryu](https://forum.mattermost.com/u/Ryu)\
**Replies:** 5\
**Last updated:** [May 30, 2026, 12:51pm UTC](https://forum.mattermost.com/t/trying-to-delete-user-accounts/25300 "2026-05-30T12:51:01Z")

</div>

From what I understand, it is impossible to delete a user account outside of the command line tools. How do I use MMCTL to delete a user account when it is deployed on a Truenas Server?

---

## [Use of mmctl cli with Docker](https://forum.mattermost.com/t/use-of-mmctl-cli-with-docker/25683)

<div class="topic-metadata">

**Author:** [@GuillaumeSorel](https://forum.mattermost.com/u/GuillaumeSorel)\
**Replies:** 1\
**Last updated:** [January 30, 2026, 8:12am UTC](https://forum.mattermost.com/t/use-of-mmctl-cli-with-docker/25683 "2026-01-30T08:12:15Z")

</div>

Hi, I’m new to MM we run MM (mattermost-enterprise-edition:10.11.8) on Docker (Rocky Linux8) and I can’t figure out to use \`mmctl\` (which is also installed in /etc/… and declared in $PATH but I understood I should use t…

---

## [Migration assist tool won't connect to MySQL](https://forum.mattermost.com/t/migration-assist-tool-wont-connect-to-mysql/25574)

<div class="topic-metadata">

**Author:** [@kwkrun](https://forum.mattermost.com/u/kwkrun)\
**Replies:** 3\
**Last updated:** [December 16, 2025, 6:53pm UTC](https://forum.mattermost.com/t/migration-assist-tool-wont-connect-to-mysql/25574 "2025-12-16T18:53:49Z")

</div>

We have a Rhel7 VM running Mattermost Version 5.23.0 It is using MySQL version 5.7.28 I have built a new Rhel9 VM with Mattermost Version 10.10.1 It is using PostgreSQL Version 13.20 I am trying to run the migration-…

---

## [\[Solved\] Mmctl different between paid and free versions?](https://forum.mattermost.com/t/solved-mmctl-different-between-paid-and-free-versions/22962)

<div class="topic-metadata">

**Author:** [@systemsheep](https://forum.mattermost.com/u/systemsheep)\
**Replies:** 3\
**Last updated:** [April 2, 2025, 3:56am UTC](https://forum.mattermost.com/t/solved-mmctl-different-between-paid-and-free-versions/22962 "2025-04-02T03:56:51Z")

</div>

Hi all, just wondering if mmctl is one of the things that has limited features in the free Team version of Mattermost compared to the paid Enterprise version? Are there commands in the Enterprise edition of mmctl that ca…

---

## [Command 'mmctl webhook create-incoming' leads to error](https://forum.mattermost.com/t/command-mmctl-webhook-create-incoming-leads-to-error/22851)

<div class="topic-metadata">

**Author:** [@AxelWunsch](https://forum.mattermost.com/u/AxelWunsch)\
**Replies:** 2\
**Last updated:** [March 24, 2025, 1:57pm UTC](https://forum.mattermost.com/t/command-mmctl-webhook-create-incoming-leads-to-error/22851 "2025-03-24T13:57:57Z")

</div>

Hi there, I’m using the currently actual version 10.6.0 and i have difficulties creating a new incoming webhook for a bot account via mmctl inside a docker container. The console output is as follows: root@e2633770728…

---

## [Mmctl \`Unhandled panic in job\` when importing](https://forum.mattermost.com/t/mmctl-unhandled-panic-in-job-when-importing/22753)

<div class="topic-metadata">

**Author:** [@DeathCamel58](https://forum.mattermost.com/u/DeathCamel58)\
**Replies:** 1\
**Last updated:** [March 11, 2025, 11:14pm UTC](https://forum.mattermost.com/t/mmctl-unhandled-panic-in-job-when-importing/22753 "2025-03-11T23:14:58Z")

</div>

I just set up a new Mattermost server using the omnibus installation method. Following along with Migrate from Slack, I’ve managed to export the slack data. Importing mattermost-bulk-import.zip using sudo mmctl --local…

---

## [Mmctl config changes won't save](https://forum.mattermost.com/t/mmctl-config-changes-wont-save/17856)

<div class="topic-metadata">

**Author:** [@manny439](https://forum.mattermost.com/u/manny439)\
**Replies:** 6\
**Last updated:** [February 28, 2025, 2:35pm UTC](https://forum.mattermost.com/t/mmctl-config-changes-wont-save/17856 "2025-02-28T14:35:21Z")

</div>

mmctl config edit changes won’t take whether I edit the local config or the server config. I was initially trying to edit the SSL parameters, but realized the new omnibus install I just did was using NGINX for reverse pr…

---

## [Webhook created for bot account does not show but profile pic](https://forum.mattermost.com/t/webhook-created-for-bot-account-does-not-show-but-profile-pic/22551)

<div class="topic-metadata">

**Author:** [@iPodClassic](https://forum.mattermost.com/u/iPodClassic)\
**Replies:** 5\
**Last updated:** [February 15, 2025, 11:20pm UTC](https://forum.mattermost.com/t/webhook-created-for-bot-account-does-not-show-but-profile-pic/22551 "2025-02-15T23:20:32Z")

</div>

I crated an incoming webhook with mmctl webhook create-incoming --channel 37zu8p4r57dcid7pnissiqjpme --user 7er85kttnpy6dgbhrujkyxidnh --local Id: rgotkujrfffk9y91xdr74jf7oh Display Name: When when I use the Webhook I…

---

## [Issue in creating user with mmctl](https://forum.mattermost.com/t/issue-in-creating-user-with-mmctl/22462)

<div class="topic-metadata">

**Author:** [@Majed](https://forum.mattermost.com/u/Majed)\
**Replies:** 2\
**Last updated:** [February 5, 2025, 6:04pm UTC](https://forum.mattermost.com/t/issue-in-creating-user-with-mmctl/22462 "2025-02-05T18:04:54Z")

</div>

Hi, I’m new to mattermost. I tried to create user via command line. I used this command: mmctl user create --email user@example.com --username newuser --password MySecurePass! I tried with both the root and mattermost…

---

## [\[Solved\] Context deadline exceeded error when doing mmctl import](https://forum.mattermost.com/t/solved-context-deadline-exceeded-error-when-doing-mmctl-import/22240)

<div class="topic-metadata">

**Author:** [@hadifarnoud](https://forum.mattermost.com/u/hadifarnoud)\
**Replies:** 4\
**Last updated:** [January 17, 2025, 3:21pm UTC](https://forum.mattermost.com/t/solved-context-deadline-exceeded-error-when-doing-mmctl-import/22240 "2025-01-17T15:21:46Z")

</div>

I cannot get mmctl import to work. mmctl --local import upload ./mattermost-bulk-import.zip Error: failed to upload data: : Unable to write the file., unable write the data in the file import/m1tmnrw7d\*\*\*\*8f1p3ct7a9h\_m…

---

## [Migrate accounts from GitLab authentication to email](https://forum.mattermost.com/t/migrate-accounts-from-gitlab-authentication-to-email/17160)

<div class="topic-metadata">

**Author:** [@tomz](https://forum.mattermost.com/u/tomz)\
**Replies:** 6\
**Last updated:** [January 17, 2025, 7:16am UTC](https://forum.mattermost.com/t/migrate-accounts-from-gitlab-authentication-to-email/17160 "2025-01-17T07:16:01Z")

</div>

I have the need to migrate one, possibly more, users from GitLab (Keycloak) back to simple user name/email authentication. Looking at the documentation here mmctl command line tool — Mattermost documentation it seems li…

---

## [ImportProcessWorker: Unable to process import: file does not exists](https://forum.mattermost.com/t/importprocessworker-unable-to-process-import-file-does-not-exists/18564)

<div class="topic-metadata">

**Author:** [@TheoSteenekamp](https://forum.mattermost.com/u/TheoSteenekamp)\
**Replies:** 1\
**Last updated:** [May 6, 2024, 6:06pm UTC](https://forum.mattermost.com/t/importprocessworker-unable-to-process-import-file-does-not-exists/18564 "2024-05-06T18:06:16Z")

</div>

Summary We are running a self hosted version of Mattermost in Kubernetes. I am busy importing data from a Slack export I followed the guide Migrate from Slack - Mattermost documentation Using mmctl for everything as i…

---

## [\[Solved\] Mattermost Omnibus - Can't change Config - Security Reasons](https://forum.mattermost.com/t/solved-mattermost-omnibus-cant-change-config-security-reasons/17310)

<div class="topic-metadata">

**Author:** [@fffjjjggg](https://forum.mattermost.com/u/fffjjjggg)\
**Replies:** 2\
**Last updated:** [November 22, 2023, 1:46am UTC](https://forum.mattermost.com/t/solved-mattermost-omnibus-cant-change-config-security-reasons/17310 "2023-11-22T01:46:04Z")

</div>

Summary: Code: mmctl config set PluginSettings.EnableUploads true Result: Error: : Changing PluginSettings.EnableUploads is not allowed due to security reasons. My set-up: Mattermost omnibus edition on a remote Ubu…

---

## [Jira plugin install get error Command with a trigger of '/jira' not found](https://forum.mattermost.com/t/jira-plugin-install-get-error-command-with-a-trigger-of-jira-not-found/17293)

<div class="topic-metadata">

**Author:** [@mfaridi](https://forum.mattermost.com/u/mfaridi)\
**Replies:** 1\
**Last updated:** [November 15, 2023, 3:55am UTC](https://forum.mattermost.com/t/jira-plugin-install-get-error-command-with-a-trigger-of-jira-not-found/17293 "2023-11-15T03:55:42Z")

</div>

I use Mattermost 9.2.2 and I install jira plugin 4 from market place and enable it, but when I type this command in one of the public channel I get this error command with a trigger of '/jira' not found I can not conti…

---

## [Migrate MySQL DB](https://forum.mattermost.com/t/migrate-mysql-db/16977)

<div class="topic-metadata">

**Author:** [@AlexGi](https://forum.mattermost.com/u/AlexGi)\
**Replies:** 1\
**Last updated:** [October 5, 2023, 7:40pm UTC](https://forum.mattermost.com/t/migrate-mysql-db/16977 "2023-10-05T19:40:36Z")

</div>

I would like to help all mattermost accounts in our company to upgrade to the most recent version. Because everyone’s laptop would show “New desktop version available.” every day. Could you give me some guidelines to do …

---

## [\[Solved\] Mmctl channel move error](https://forum.mattermost.com/t/solved-mmctl-channel-move-error/16482)

<div class="topic-metadata">

**Author:** [@Rochus](https://forum.mattermost.com/u/Rochus)\
**Replies:** 1\
**Last updated:** [August 10, 2023, 9:45pm UTC](https://forum.mattermost.com/t/solved-mmctl-channel-move-error/16482 "2023-08-10T21:45:25Z")

</div>

Hi, I am getting an error with mmcli channel move. I execute the following: mmctl channel move NewTeam OldTeam:myChannel and I get http://domain\_name.de:8065/api/v4/users/me": dial tcp ip\_address:8065: connect: conn…

---

## [Mattermost command not found](https://forum.mattermost.com/t/mattermost-command-not-found/11098)

<div class="topic-metadata">

**Author:** [@aDriesel](https://forum.mattermost.com/u/aDriesel)\
**Replies:** 5\
**Last updated:** [July 29, 2023, 3:50am UTC](https://forum.mattermost.com/t/mattermost-command-not-found/11098 "2023-07-29T03:50:48Z")

</div>

Hi all, i tried to config mattermost with terminal, but i always got the error: Mattermost: command not found How could i add mattermost to terminal tools to use alle commands?

---

## [Permission denied trying to export with mmctl CLI from the Cloud Free mattermost](https://forum.mattermost.com/t/permission-denied-trying-to-export-with-mmctl-cli-from-the-cloud-free-mattermost/16388)

<div class="topic-metadata">

**Author:** [@aqueipo](https://forum.mattermost.com/u/aqueipo)\
**Replies:** 2\
**Last updated:** [July 28, 2023, 12:01am UTC](https://forum.mattermost.com/t/permission-denied-trying-to-export-with-mmctl-cli-from-the-cloud-free-mattermost/16388 "2023-07-28T00:01:49Z")

</div>

Hello I am trying to export all the data we have in our Cloud Free workspace before the deprecation on July 27. I succesfully created the export with the name z8bjyxnzoidxbgrqrpc5pqpbgo\_export.zip through a mattermost in…

---

## [\[Solved\] Migration import - Error: could not initiate client](https://forum.mattermost.com/t/solved-migration-import-error-could-not-initiate-client/16369)

<div class="topic-metadata">

**Author:** [@Rochus](https://forum.mattermost.com/u/Rochus)\
**Replies:** 5\
**Last updated:** [July 27, 2023, 12:39am UTC](https://forum.mattermost.com/t/solved-migration-import-error-could-not-initiate-client/16369 "2023-07-27T00:39:07Z")

</div>

hi, I am attempting to do a DB migration from Mattermost’s cloud to a private server. I have installed mmctl. When I execute the following instruction and enter my credentials I see the following error. ./mmctl auth l…

---

## [\[Solved\] Mmcil - Cloud to Self Host Migration -Error: failed to create upload session: : Unable to upload file. File is too large](https://forum.mattermost.com/t/solved-mmcil-cloud-to-self-host-migration-error-failed-to-create-upload-session-unable-to-upload-file-file-is-too-large/16372)

<div class="topic-metadata">

**Author:** [@Rochus](https://forum.mattermost.com/u/Rochus)\
**Replies:** 7\
**Last updated:** [July 26, 2023, 4:49am UTC](https://forum.mattermost.com/t/solved-mmcil-cloud-to-self-host-migration-error-failed-to-create-upload-session-unable-to-upload-file-file-is-too-large/16372 "2023-07-26T04:49:50Z")

</div>

Hi, I am in the middle of a mattermost cloud to self host migration process. When I run the import upload command, I get an error indicating the file is too large. ./mmctl import upload cifqc..\_export.zip Error: fail…

---

## [Mmtcl uploads Error: failed to create upload session](https://forum.mattermost.com/t/mmtcl-uploads-error-failed-to-create-upload-session/16370)

<div class="topic-metadata">

**Author:** [@Rochus](https://forum.mattermost.com/u/Rochus)\
**Replies:** 1\
**Last updated:** [July 19, 2023, 11:31pm UTC](https://forum.mattermost.com/t/mmtcl-uploads-error-failed-to-create-upload-session/16370 "2023-07-19T23:31:21Z")

</div>

Hi, When I attempt to upload/import data I come across the following error. ./mmctl import upload cifq...\_export.zip WARNING: server version 5.3.0.5.3.1.6ad14601cdbb90838e212bc341eb927b.false doesn't match mmctl versi…

---

## [Mattermost doesn't show imported messages](https://forum.mattermost.com/t/mattermost-doesnt-show-imported-messages/16361)

<div class="topic-metadata">

**Author:** [@f\_un](https://forum.mattermost.com/u/f_un)\
**Replies:** 1\
**Last updated:** [July 19, 2023, 11:27pm UTC](https://forum.mattermost.com/t/mattermost-doesnt-show-imported-messages/16361 "2023-07-19T23:27:01Z")

</div>

We migrated our Mattermost team according to Mattermost workspace migration — Mattermost documentation from the cloud to our self-hosted server. The process worked finde, the process migrated all channels and all users.…

---

## [Auhtorization bearer token / mchat upload server url](https://forum.mattermost.com/t/auhtorization-bearer-token-mchat-upload-server-url/16391)

<div class="topic-metadata">

**Author:** [@james0418](https://forum.mattermost.com/u/james0418)\
**Replies:** 0\
**Last updated:** [July 13, 2023, 2:35am UTC](https://forum.mattermost.com/t/auhtorization-bearer-token-mchat-upload-server-url/16391 "2023-07-13T02:35:06Z")

</div>

Hello, Trying to automate some task at work, and one of the script requires authorization bearer token, to upload some text file via api request, and Im new to mchat platform, is there a way to generate authentication …

---

## [Send text to a channel with a "quick command"](https://forum.mattermost.com/t/send-text-to-a-channel-with-a-quick-command/16223)

<div class="topic-metadata">

**Author:** [@Ityumenev](https://forum.mattermost.com/u/Ityumenev)\
**Replies:** 1\
**Last updated:** [June 23, 2023, 12:43am UTC](https://forum.mattermost.com/t/send-text-to-a-channel-with-a-quick-command/16223 "2023-06-23T00:43:23Z")

</div>

How can I make a quick command to send specific text to a channel? I need to make a server maintenance template and I only want to specify the time and type of work (two variables). Can this be done using shortcuts?

---

## [Change my DataBase from Single to Cluster](https://forum.mattermost.com/t/change-my-database-from-single-to-cluster/16194)

<div class="topic-metadata">

**Author:** [@ZXRobotum](https://forum.mattermost.com/u/ZXRobotum)\
**Replies:** 1\
**Last updated:** [June 16, 2023, 4:30am UTC](https://forum.mattermost.com/t/change-my-database-from-single-to-cluster/16194 "2023-06-16T04:30:29Z")

</div>

Hello together, Today I moved my database server from a single node to a cluster and simply changed the config here at MAttermost. I did not take the database itself with me, but wanted to start from a “new” database. B…

---

## [Exporting permission schemes](https://forum.mattermost.com/t/exporting-permission-schemes/16132)

<div class="topic-metadata">

**Author:** [@TwizzyDizzy](https://forum.mattermost.com/u/TwizzyDizzy)\
**Replies:** 1\
**Last updated:** [June 13, 2023, 8:21am UTC](https://forum.mattermost.com/t/exporting-permission-schemes/16132 "2023-06-13T08:21:54Z")

</div>

Hi folks, I was just trying to export my permission scheme as documented here: Command line tools — Mattermost documentation. I’m running Mattermost 7.8.5. Unfortunately though, this command seems to be gone: root@HO…

---

## [Bulk load messages with images](https://forum.mattermost.com/t/bulk-load-messages-with-images/15808)

<div class="topic-metadata">

**Author:** [@cro](https://forum.mattermost.com/u/cro)\
**Replies:** 0\
**Last updated:** [April 30, 2023, 4:17am UTC](https://forum.mattermost.com/t/bulk-load-messages-with-images/15808 "2023-04-30T04:17:34Z")

</div>

Greetings, I am attempting to write a script to create a bulk import file from messages exported from Element and include images (and other media files). In the Element export it looks like posts with images are treate…

---

## [Unable to create user](https://forum.mattermost.com/t/unable-to-create-user/15560)

<div class="topic-metadata">

**Author:** [@tomz](https://forum.mattermost.com/u/tomz)\
**Replies:** 3\
**Last updated:** [April 4, 2023, 7:07am UTC](https://forum.mattermost.com/t/unable-to-create-user/15560 "2023-04-04T07:07:27Z")

</div>

I am running MM with docker and am trying to create a new user. Most of my users are github/Keycloak based users, but now I have to create a local user and ran into the issue below. I worked my way through the error me…

---

## [SSL certificate installation issues deploy without nginex](https://forum.mattermost.com/t/ssl-certificate-installation-issues-deploy-without-nginex/15189)

<div class="topic-metadata">

**Author:** [@joselts](https://forum.mattermost.com/u/joselts)\
**Replies:** 3\
**Last updated:** [March 8, 2023, 7:30pm UTC](https://forum.mattermost.com/t/ssl-certificate-installation-issues-deploy-without-nginex/15189 "2023-03-08T19:30:31Z")

</div>

Dear support, I want to install my own SSL certificate to a mattermost deployment without nginx, but I been having some issues that I am not sure who to troubleshoot, below you have screenshots of the environment inform…

[Next page](https://forum.mattermost.com/c/trouble-shoot/cli/34.md?page=1)
