Loading...
Loading...
Compare original and translation side by side
mmmm--human--humanmmmm whoamimmpip install mattermost-cli # adds `mm` to PATHmmmm whoamimmpip install mattermost-cli # 将`mm`添加至PATH
Then authenticate (one-time):
```bash
mm login --url https://your.mattermost.server
mm whoami # verifymm login --url https://your.mattermost.server --token YOUR_TOKEN
然后进行一次性身份验证:
```bash
mm login --url https://your.mattermost.server
mm whoami # 验证登录状态mm login --url https://your.mattermost.server --token YOUR_TOKENmm overviewmm overviewmm overview # last 6 hours (default)
mm overview --since 1d # last 24 hoursrefmm overview # 最近6小时(默认)
mm overview --since 1d # 最近24小时refmm messages <channel> # last 30 messages, chronological
mm messages <channel> --since 2h # messages from last 2 hours
mm messages <channel> --threads # thread index: root + reply count + last reply
mm messages @username # DMs with someone<channel>off-topic@usernamemm messages <channel> # 最近30条消息,按时间顺序排列
mm messages <channel> --since 2h # 最近2小时的消息
mm messages <channel> --threads # 线程索引:根消息 + 回复数 + 最新回复
mm messages @username # 与指定用户的私信<channel>off-topic@usernamethread_idmm thread <thread_id> # root + last 9 replies
mm thread <thread_id> --limit 0 # entire thread
mm thread <thread_id> --since 1h # just recent replies (root always included)thread_idmm thread <thread_id> # 根消息 + 最新9条回复
mm thread <thread_id> --limit 0 # 完整对话线程
mm thread <thread_id> --since 1h # 仅显示近期回复(始终包含根消息)mm search "deployment issue"
mm search "from:alice in:devops after:2025-01-01"
mm mentions # @-mentions in last 24h
mm mentions --since 3drootmm search "deployment issue"
mm search "from:alice in:devops after:2025-01-01"
mm mentions # 最近24小时内的@提及提醒
mm mentions --since 3drootmm channel <name> # purpose, header, member/pinned count
mm pinned <channel> # important/pinned posts
mm members <channel> # who's here + online status
mm channels --since 6h # all channels with recent activity
mm channels --type dm # just DMsmm channel <name> # 频道用途、头部信息、成员/置顶帖子数量
mm pinned <channel> # 重要/置顶帖子
mm members <channel> # 频道成员及在线状态
mm channels --since 6h # 所有有近期活动的频道
mm channels --type dm # 仅显示私信频道mm user @someone # profile, role, status, timezonemm user @someone # 用户资料、角色、状态、时区| Field | What it's for |
|---|---|
| Pass to |
| On channel entries; pass to |
| Webhook and bot posts are flagged automatically |
| On reply-mentions; the original message being replied to |
| Thread structure |
| Emoji counts like |
| 字段 | 用途 |
|---|---|
| 传递给 |
| 频道条目包含此字段;传递给 |
| 自动标记Webhook和机器人发布的帖子 |
| 回复提及提醒包含此字段;即被回复的原始消息 |
| 对话线程结构信息 |
| 表情计数,例如 |