# 使用 Homebrew, Nix, pacman 安装 mmctl

查看 mmctl 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:mmctl
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install mmctl
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#mmctl
```

  证据: nixpkgs package indexes: pkgs/by-name/mm/mmctl/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S mmctl
```

  证据: Arch Linux sync databases: mmctl from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## 软件包事实

- **软件包键:** brew:mmctl
- **软件包管理器:** Homebrew
- **版本:** 11.9.0
- **来源摘要:** Remote CLI tool for Mattermost server
- **主页:** <https://mattermost.com>
- **仓库:** <https://github.com/mattermost/mattermost>
- **最后更新:** 2026-07-29T17:04:56+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- mmctl (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 11.9.0
## 项目历史与用法

mmctl is Mattermost's administrative command-line client. The Mattermost documentation describes it as a CLI for Mattermost servers that is installed locally, uses the Mattermost API, and can operate remotely. Authentication can use login credentials or an authentication token, which makes it useful for administrators who do not have shell access to the Mattermost server host.

### 项目历史

Its history is tied to Mattermost's transition away from the older server-local `mattermost` CLI for many administrative actions. Mattermost documentation says that from Mattermost v6.0, the majority of the older CLI commands were replaced by equivalents in mmctl, while some import, export, server, and database commands remained in the `mattermost` CLI. The mmctl documentation also notes that the tool was developed to a large extent through community contributions.

### 使用方式

In use, mmctl is a remote administration and automation tool for self-hosted and Cloud Mattermost instances. System administrators use it for user, team, channel, role, permission, config, auth, export, import, plugin, and other server-management operations from scripts or local terminals. The Homebrew package makes sense for admins who manage Mattermost from macOS without installing a full Mattermost server distribution.

### 来源

- <https://docs.mattermost.com/administration-guide/manage/command-line-tools.html>
- <https://docs.mattermost.com/administration-guide/manage/mmctl-command-line-tool.html>
- <https://formulae.brew.sh/formula/mmctl>
- <https://github.com/mattermost/mattermost>
- <https://github.com/mattermost/mmctl>


## 安全说明

没有找到 mmctl 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: $XDG_CONFIG_HOME/mmctl/config

## Credential files

- Unix: $XDG_CONFIG_HOME/mmctl/config
## 其他软件包管理器记录

- Nix - mmctl: normalized package name match | nixpkgs package indexes: pkgs/by-name/mm/mmctl/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- pacman - mmctl - 11.9.0-2: normalized package name match | Arch Linux sync databases: mmctl from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Open source Slack-alternative in Golang and React | https://mattermost.com


## Combined YAML source

View the package source record on GitHub. [combined/mmctl.yml](https://github.com/mxcl/pkgdb/blob/main/combined/mmctl.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
