CLI 目录 横向对比 FCRS-1.0 标准 /llms.txt
← 返回 CLI 目录

Intercom CLI

$ intercom 官方出品 中风险
Intercom · 办公协作与 SaaS · Proprietary (Intercom Developer Terms) · macos / linux / windows

Intercom CLI(intercom / @intercom/cli,又称 Fin CLI)支持在终端管理 Intercom 帮助中心文章、联系人、会话、Messenger 代码片段及 Fin AI 代理配置。针对编程 Agent 深度优化,管道下自动输出 JSON/NDJSON,并提供 --json、--jq、--plan 预演及 intercom api 原始接口调用。

FCRS-1.0 综合评分
89 /100
良好 (Good)
中置信度 (源码/文档)
零摩擦安装命令
npm install -g @intercom/cli
CLI vs MCP 选型建议 CLI + MCP 搭配

intercom 在本地编码 Agent 闭环中表现出色,支持 --plan 预演、--jq 裁剪与 intercom setup --articles-from ./docs;Intercom MCP 则适合托管对话助手。

Agent 友好度体检单

✓ 原生 JSON 输出
✓ 字段裁剪
✓ 无头非交互
✓ 支持 Dry-Run
— 只读模式开关
— 支持 NO_COLOR
✓ 自省/Schema 发现
— 官方 SKILL.md

当前为静态评估(本机尚未安装或尚未运行探针)。可在本地运行 npm run data:probe 并提交 data/probes/ 升级为实测证据。

FCRS-1.0 六维评分拆解

Agent 友好度 23 / 25

专为编码 Agent 设计,支持 --json、管道自动 NDJSON、内置 --jq、--plan 预演及 intercom api。

  • Auto-switches to JSON/NDJSON when piped and supports explicit --json
  • Built-in --jq path filtering and --plan preview mode
安全与权限边界 21 / 25

使用系统钥匙串与 --with-token 标准输入传参,并提供 --plan 预演和 auth doctor 自检。

  • OS keyring storage and --with-token avoid shell-history token leaks
  • --plan previews setup steps before mutation
安装与运行摩擦 13 / 15

通过 npm install -g @intercom/cli 与 npx @intercom/cli 跨平台安装使用。

  • Available on macOS, Linux, and Windows via npm and npx
能力覆盖与边际价值 13 / 15

统一覆盖工作区诊断、帮助中心文章、Fin AI 清单、Messenger 片段与原始 API 调用。

  • Unifies auth, articles, contacts, fin, setup, and api
维护与来源背书 10 / 10

Intercom 官方包(@intercom/cli),针对 Fin 与编码 Agent 工作流持续维护。

  • First-party Intercom CLI at fin.ai/cli
文档与可验证性 9 / 10

官方帮助文档与 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 订阅方案。

可复制到 CLAUDE.md / AGENTS.md 的安全护栏
# 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 工作区身份
intercom me --json

以单一 JSON 文档返回当前认证应用与工作区元数据。

使用内置 jq 过滤列出帮助中心文章
intercom articles list --json --jq '.data[].title'

查询帮助中心文章并使用 --jq 原生提取标题字段。

受控写入与预演

使用 --plan 预演工作区初始化步骤
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 公式。

已验证兼容的 Agent 宿主

Claude Code Codex CLI Gemini CLI