Intercom CLI
$ intercom 官方出品 中风险Intercom CLI(intercom / @intercom/cli,又称 Fin CLI)支持在终端管理 Intercom 帮助中心文章、联系人、会话、Messenger 代码片段及 Fin AI 代理配置。针对编程 Agent 深度优化,管道下自动输出 JSON/NDJSON,并提供 --json、--jq、--plan 预演及 intercom api 原始接口调用。
npm install -g @intercom/cli intercom 在本地编码 Agent 闭环中表现出色,支持 --plan 预演、--jq 裁剪与 intercom setup --articles-from ./docs;Intercom MCP 则适合托管对话助手。
Agent 友好度体检单
当前为静态评估(本机尚未安装或尚未运行探针)。可在本地运行 npm run data:probe 并提交 data/probes/ 升级为实测证据。
FCRS-1.0 六维评分拆解
专为编码 Agent 设计,支持 --json、管道自动 NDJSON、内置 --jq、--plan 预演及 intercom api。
- Auto-switches to JSON/NDJSON when piped and supports explicit
--json - Built-in
--jqpath filtering and--planpreview mode
使用系统钥匙串与 --with-token 标准输入传参,并提供 --plan 预演和 auth doctor 自检。
- OS keyring storage and
--with-tokenavoid shell-history token leaks --planpreviews setup steps before mutation
通过 npm install -g @intercom/cli 与 npx @intercom/cli 跨平台安装使用。
- Available on macOS, Linux, and Windows via npm and npx
统一覆盖工作区诊断、帮助中心文章、Fin AI 清单、Messenger 片段与原始 API 调用。
- Unifies
auth,articles,contacts,fin,setup, andapi
Intercom 官方包(@intercom/cli),针对 Fin 与编码 Agent 工作流持续维护。
- First-party Intercom CLI at
fin.ai/cli
官方帮助文档与 fin.ai/cli 对认证、--plan 与 --jq 都有清晰说明。
- Official docs on Intercom Help and
fin.ai/cli
安全边界、鉴权与放权指南
通过 intercom auth login --token 或 --with-token 将访问令牌存储在系统钥匙串(macOS Keychain、Linux libsecret、Windows Credential Manager)中,或直接读取 INTERCOM_TOKEN 环境变量。
CLI 工具免费;管理线上工作区与使用 Fin AI 解答服务需配合 Intercom 订阅方案。
# Intercom CLI (intercom) Agent Rules - Authenticate via `INTERCOM_TOKEN` or pipe into `intercom auth login --with-token` to keep secrets out of shell history. - Pass `--plan` before running `intercom setup` or bulk Help Center syncs. - Use `--json` and `--jq` on read calls; confirm before running `articles delete` or live `fin enable`.
Agent 高频安全命令配方
只读查询(安全推荐)
intercom me --json
以单一 JSON 文档返回当前认证应用与工作区元数据。
intercom articles list --json --jq '.data[].title'
查询帮助中心文章并使用 --jq 原生提取标题字段。
受控写入与预演
intercom setup --company-name "Acme" --articles-from ./docs --plan
打印将要执行的文章导入与 Fin 配置命令,而不修改线上工作区。
核心优势
- + 原生
--json、--jq、--plan与管道 NDJSON 让 Agent 自动化编排极其顺手。 - + 系统钥匙串存储搭配
INTERCOM_TOKEN与--with-token避免凭据泄露。
注意事项与踩坑点
- ! 浏览器 OAuth 登录受限,常规工作区接入需在 Developer Hub 获取 Access Token。
- ! 通过 npm 分发,暂无公开开源仓库与 Homebrew 公式。