SuperAPI AI 工具集

inngest-api-cli

编程与开发

查看项目

更新于 10-16 06:19

技能介绍

用途:在终端以 inngest api 命令检查、调试、同步、调用和查询 Inngest API 资源,适合运维与排障类任务。代码改动应配合 inngest-setup、inngest-events、inngest-steps 等领域技能;通用 CLI 安装、inngest dev、Docker、本地测试、MCP 与自托管启动请用 inngest-cli。

主要能力:健康检查、账户与环境查询、事件键/签名键/Webhook 列表、按 run ID 获取函数运行与步骤级 trace、按 event ID 查运行、同步应用、调用函数、发现并执行 Insights 查询。

使用方式:先运行 npx inngest-cli@latest api --help 与子命令 --help 确认当前接口;本地为默认目标,云端生产需 --prod,非生产云环境用 INNGEST_ENV=<name> 或 --env;云端优先用 INNGEST_API_KEY,避免内联 --api-key。常用示例:npx inngest-cli@latest api health;npx inngest-cli@latest api --prod get-account;npx inngest-cli@latest api --prod get-function-run <run_id>;npx inngest-cli@latest api --prod get-function-trace <run_id> --include-output;npx inngest-cli@latest api --prod get-event-runs <event_id> --limit 5 --include-output;npx inngest-cli@latest api --prod sync-app --app-id <app_id> --url <serve_url>;npx inngest-cli@latest api --prod invoke-function --app-id <app_id> --function-id <function_id> --data '<json>'。复杂 JSON 用 --body-file。

限制与注意:CLI 处于 beta,行为可能与文档不一致,需查帮助、https://api-docs.inngest.com/llms.txt 或 v2.json,必要时回退 inngest-api 技能。变更类操作(create-env、patch-env、create-webhook、sync-app、invoke-function、大范围 query-insights)需先读后写并确认。输出为 JSON,需结构化解析;分页时用 --cursor;摘要中脱敏密钥、Webhook URL 与敏感字段。缺失 ID 时先尝试 MCP、提示词、仓库配置与事件查询,再向用户索取。