CLI 诊断
当安装、配置或 Agent 自动化表现不符合预期时,先按本页排查。
先做健康检查
noxinfluencer doctor
doctor 用于检查 CLI 是否能读取配置、连接 server、认证 API key,并查询 quota。
如果 doctor 提示尚未认证,先使用浏览器登录:
noxinfluencer login
只有当浏览器登录不可用、需要从 Skills 控制台手动配置 key 时,才使用 noxinfluencer auth --key-stdin。
如果你希望 CLI 返回中文引导链接和提示:
noxinfluencer --lang zh doctor
验证命令树
noxinfluencer schema --all
当前 CLI 基线需要已安装命令树暴露这些命令组:
logincreatormonitorcampaigncollectionemailmessagecrmproductshort-linkaffiliationbrand-monitorexportfilefeedbackquotapricingagent
如果缺少这些命令组,重新安装最新 CLI:
npm install -g @noxinfluencer/cli@latest
本地或全局编译文件过旧时,只看版本号不够。
当前文档基线是 @noxinfluencer/cli 0.4.21 或更新版本。排查旧安装时,优先看 schema --all,不要只看版本号。如果缺少 login,当前安装树无法使用浏览器登录。如果缺少 quota 或 pricing,当前安装树无法查看 Skill 当前额度、近期用量或服务端动作单价。如果缺少 product,当前安装树就不能执行商品中心和邮件商品卡相关工作流。如果缺少 file,当前安装树无法上传富文本使用的公开图片。如果缺少 short-link 或 affiliation,当前安装树就不能执行普通短链和 Shopify 联盟营销工作流。
嵌套命令也必须完整。如果缺少 creator export、creator export-preview、monitor auto-track import-file、monitor report、crm import-file、email recipients import-file、email attachments download、message templates attachments upload、file image upload、short-link export-list、affiliation members import-file 或 feedback attachments download,请先重新安装最新 CLI。
查看具体命令参数
构建 JSON-first 请求前,先看 schema:
noxinfluencer schema "creator search"
noxinfluencer schema "creator search-filter"
noxinfluencer schema "creator lookalikes"
noxinfluencer schema "creator export"
noxinfluencer schema "creator export-preview"
noxinfluencer schema "monitor import-file"
noxinfluencer schema "monitor auto-track import-file"
noxinfluencer schema "monitor report"
noxinfluencer schema "login"
noxinfluencer schema "pricing tools"
noxinfluencer schema "quota usage"
noxinfluencer schema "email create"
noxinfluencer schema "email recipients add"
noxinfluencer schema "email recipients import-file"
noxinfluencer schema "email recipients filter update"
noxinfluencer schema "email collaborators add"
noxinfluencer schema "email products replace"
noxinfluencer schema "email attachments upload"
noxinfluencer schema "email attachments download"
noxinfluencer schema "message list"
noxinfluencer schema "message project-filters"
noxinfluencer schema "message creator-filters"
noxinfluencer schema "message get"
noxinfluencer schema "message projects"
noxinfluencer schema "message send"
noxinfluencer schema "message schedule"
noxinfluencer schema "message attachments upload"
noxinfluencer schema "message templates attachments upload"
noxinfluencer schema "file image upload"
noxinfluencer schema "product list"
noxinfluencer schema "short-link create"
noxinfluencer schema "short-link export-list"
noxinfluencer schema "affiliation stores list"
noxinfluencer schema "affiliation campaigns create"
noxinfluencer schema "affiliation members status"
noxinfluencer schema "affiliation members import-file"
noxinfluencer schema "brand-monitor influencer-list"
noxinfluencer schema "feedback submit"
很多营销运营命令需要 --body-file。优先准备最小 JSON body;如果工作流支持 validate 或 preview,先验证再执行。
上传和表格导入命令不同:它们使用本地 --file 路径,但仍然属于写操作。能预览时先预览,只有在确认目标对象和本地文件后,才使用 --force。授权下载使用 --output;只有明确要替换已有本地文件时,才加 --overwrite。
检查文件、导入和报告工作流
根据你要执行的工作流,检查有代表性的 help 或 schema:
noxinfluencer schema "creator export-preview"
noxinfluencer schema "monitor import-file"
noxinfluencer schema "monitor auto-track import-file"
noxinfluencer schema "crm import-file"
noxinfluencer schema "email recipients import-file"
noxinfluencer schema "message templates attachments download"
noxinfluencer schema "file image upload"
达人、资源池、CRM 和品牌监控导出会创建异步任务,需要通过 export list/get/download 查看和下载。监控报告、短链报告和联盟营销活动报告会直接把 Excel 下载到 --output,不要去共享导出任务列表里等待。
对于 SaaS 对齐的隐藏和去重菜单,先使用 options 命令,再构建请求 body:
noxinfluencer creator search-filter-options
noxinfluencer email recipients filter options
noxinfluencer message creator-filters
noxinfluencer message project-filters
这些命令会返回当前支持的选项、筛选 ID 或 JSON body patches。不要自己猜 SaaS 原始字段名。
检查价格和用量
开始大范围发现、相似达人、导出或批量工作流前,先检查当前单价和近期消耗:
noxinfluencer pricing tools --charged-only
noxinfluencer pricing tools --action creator_search
noxinfluencer pricing tools --action creator_lookalikes
noxinfluencer quota usage --days 7
noxinfluencer quota usage --days 30 --tool discover_creators
达人搜索和相似达人当前按返回达人数量计费。如果你需要控制成本,先减小 page_size、收紧筛选条件,并在扩大结果集前确认当前单位价格。
排查消息中心待处理状态
排查消息中心工作流时,不要只依赖 unread_count。打开线程详情可能会清除未读状态,但当前任务仍可能需要回复。
优先看 message list、message get 和 message projects 返回的这些字段:
needs_reply:当前任务是否仍需要回复last_message_direction:最后一条消息方向,可能是inbound、outbound或unknownpending_reason:为什么当前线程被视为待处理
常用检查命令:
noxinfluencer message list --status deal --page_size 20
noxinfluencer message get <thread_id>
noxinfluencer message projects <thread_id>
把 --status deal 理解为“达人最后发来消息”,不要把它等同于未读。如果打开的任务显示 needs_reply=false,但 NoxInfluencer 仍显示该达人有待处理工作,用 message projects <thread_id> 检查同一达人的兄弟任务。
message send 和 message schedule 的 html_body 必须包含可见文本。<p><br></p> 这类空富文本占位会被拒绝,也不应被用来清除待处理状态。
Agent 稳定 exit codes
noxinfluencer agent exit-codes
当 Agent、测试工具或自动化需要区分可重试错误、认证问题、配额问题、无效请求、异步结果未就绪、重复数据或内部错误时,使用该命令。
通过 CLI 反馈问题
如果 CLI 能运行,但某个结果让你困惑或看起来不正确,使用 支持与反馈:
noxinfluencer feedback submit --message "Email reply count looks wrong" --category bug --file screenshot.png --force
noxinfluencer feedback inbox
feedback 不消耗 Skill quota,但它仍然是写操作。提交前请确认反馈内容,并移除敏感信息。
常用全局选项
--json/--plain:切换输出格式--trace-json:把结构化 request trace 输出到 stderr--dry-run:预览请求,不执行写操作--force:在确认后执行写操作--idempotency-key:覆盖写请求自动生成的 Idempotency-Key--enable-commands:限制可用命令,适合受控 Agent 运行--no-input:不提示输入,直接失败--lang zh:使用中文 URL 和提示
代理链路检查
CLI 直接读取标准 proxy 环境变量:
export HTTPS_PROXY=http://127.0.0.1:10808
export HTTP_PROXY=http://127.0.0.1:10808
export NO_PROXY=127.0.0.1,localhost
在线 Skill API 请求使用 HTTPS_PROXY。只有本地或非 TLS 服务 URL 才需要 HTTP_PROXY。当前 CLI 传输层不支持 ALL_PROXY 里的 socks5://。
响应格式提醒
API-backed commands 返回标准 envelope,通常包含 success、data、summary、meta,有些当前 endpoint 还可能带兼容旧字段 credits。对外解释时,quota 响应数据才是当前 Skill 配额快照的主来源。
login、doctor、auth、env、schema、agent exit-codes 等本地命令有自己的响应格式,不要假设所有 CLI 输出都是 API envelope。



