Loading...
Loading...
Compare original and translation side by side
slack-pp-clinpx -y @mvanhorn/printing-press install slack --cli-onlyslack-pp-cli --version$GOPATH/bin$HOME/go/bin$PATHnpxgo install github.com/mvanhorn/printing-press-library/library/productivity/slack/cmd/slack-pp-cli@latest--version$PATHslack-pp-clinpx -y @mvanhorn/printing-press install slack --cli-onlyslack-pp-cli --version$GOPATH/bin$HOME/go/bin$PATHnpxgo install github.com/mvanhorn/printing-press-library/library/productivity/slack/cmd/slack-pp-cli@latest--version$PATHteamteam| Token | Scopes | When to use |
|---|---|---|
| workspace-scoped bot permissions | Default for post-message, read-channel, list-users, etc. |
| user-scoped | DM history, search on behalf of a user, stars, reminders |
https://api.slack.com/apps| 令牌类型 | 权限范围 | 使用场景 |
|---|---|---|
| 工作区范围的机器人权限 | 默认用于发送消息、读取频道、列出用户等操作 |
| 用户范围的权限 | 查看私信历史、代表用户搜索、星标内容、提醒等操作 |
https://api.slack.com/apps$ARGUMENTShelp--helpslack-pp-cli --helpinstallmcp$ARGUMENTShelp--helpslack-pp-cli --helpinstallmcpslack-pp-mcpgo install github.com/mvanhorn/printing-press-library/library/productivity/slack/cmd/slack-pp-mcp@latest
claude mcp add -e SLACK_BOT_TOKEN=xoxb-... slack-pp-mcp -- slack-pp-mcpslack-pp-mcpgo install github.com/mvanhorn/printing-press-library/library/productivity/slack/cmd/slack-pp-mcp@latest
claude mcp add -e SLACK_BOT_TOKEN=xoxb-... slack-pp-mcp -- slack-pp-mcpwhich slack-pp-clislack-pp-cli --helpslack-pp-cli <cmd> --help--agentslack-pp-cli <command> [args] --agent--agent--json --compact --no-input --no-color --yes--data-sourceautolivelocalslack-pp-cli syncwhich slack-pp-clislack-pp-cli --helpslack-pp-cli <cmd> --help--agentslack-pp-cli <command> [args] --agent--agent--json --compact --no-input --no-color --yes--data-sourceautolivelocalslack-pp-cli sync| Command | What it does |
|---|---|
| List channels and DMs in the workspace |
| List all users in the workspace |
| Full-text search across synced messages (or live API with |
| Daily/weekly activity digest from locally synced data |
| Channel health report (activity, engagement, stagnation) |
| Find dead or low-activity channels |
| Average first-response time in threads |
| Unanswered or stale threads |
| Activity summary across channels from local sync |
| Week-over-week channel activity trends |
| Populate the local SQLite store for offline analytics |
| Workspace directory queries |
| Access logs (requires admin token) |
--help| 命令 | 功能 |
|---|---|
| 列出工作区中的频道和私信 |
| 列出工作区中的所有用户 |
| 对同步的消息进行全文搜索(添加 |
| 基于本地同步数据生成每日/每周活动摘要 |
| 生成频道健康报告(活动量、参与度、沉寂情况) |
| 查找沉寂或低活跃度的频道 |
| 统计线程中的平均首次响应时间 |
| 查找未回复或闲置的线程 |
| 基于本地同步数据生成用户或频道的跨频道活动摘要 |
| 生成频道活动的周环比趋势 |
| 填充本地SQLite存储以支持离线分析 |
| 工作区目录查询 |
| 获取访问日志(需要管理员令牌) |
--help--agent--json --compact --no-input --no-color --yes--select--dry-run--no-cache--agent--json --compact --no-input --no-color --yes--select--dry-run--no-cache--selectslack-pp-cli <command> --agent --select id,name
slack-pp-cli <command> --agent --select items.id,items.owner.name--selectslack-pp-cli <command> --agent --select id,name
slack-pp-cli <command> --agent --select items.id,items.owner.name{"meta": {...}, "results": <data>}.results.meta.sourceliveN results (live){"meta": {...}, "results": <data>}.results.meta.sourceliveN results (live)| Code | Meaning |
|---|---|
| 0 | Success |
| 2 | Usage error (wrong arguments) |
| 3 | Resource not found (channel, user, message) |
| 4 | Authentication required (token missing or invalid) |
| 5 | API error (Slack upstream, including |
| 7 | Rate limited (Slack 429; CLI honors |
| 代码 | 含义 |
|---|---|
| 0 | 执行成功 |
| 2 | 使用错误(参数不正确) |
| 3 | 资源未找到(频道、用户、消息) |
| 4 | 需要认证(令牌缺失或无效) |
| 5 | API错误(Slack上游错误,包括 |
| 7 | 请求受限(Slack 429错误;CLI会遵循 |