@superglue/cli

中文文档
1.1.265发布于 2026/11/02

npm License

中文使用文档
文档目录16 节
  1. 安装
  2. 作为npm包
  3. 作为AI代理技能
  4. As Claude Code插件
  5. 快速入门
  6. 命令
  7. 工具
  8. 系统
  9. 跑步
  10. 日程安排
  11. 项目
  12. MCP服务器
  13. 其他
  14. 文档
  15. 相关
  16. 许可证

超强力胶水CLI

npm License

从命令行构建、测试和管理强力胶工具。

安装

作为npm包

npm install -g @superglue/cli
sg --help

作为AI代理技能

为任何支持的AI代理安装强力胶技能(支持35+代理):

npx skills add superglue-ai/cli

或针对特定的代理:

npx skills add superglue-ai/cli -g -a claude-code
npx skills add superglue-ai/cli -g -a codex
npx skills add superglue-ai/cli -g -a cursor

As Claude Code插件

从本地安装加载:

claude --plugin-dir $(npm root -g)/@superglue/cli

快速入门

sg login                       # browser setup
sg system list                 # verify connection
sg tool build --config '...'   # build a tool
sg tool run --draft <id>       # test it
sg tool save --draft <id>      # save it
sg schedule create --tool <toolId> --cron "0 9 * * *"
sg mcp create --name my-mcp --tool <toolId>  # expose saved tools through MCP

通过 --timezone UTC 来 sg schedule create 当需要显式设置计划时区时。

CLI需要身份验证和目标强力胶API端点。使用 sg login 浏览器 OAuth设置。对于无头/API-key验证,使用 SUPERGLUE_API_KEY / SUPERGLUE_API_ENDPOINT, --api-key / --endpoint,或现有的 config.json. 对于自托管实例,使用该实例的API端点并传递 --web-endpoint 来 sg login 当web应用的URL与API的URL不同时。添加 --save-config 坚持那些非秘密 中的端点设置 config.json.

命令

工具

  • sg tool build -从配置中构建工具
  • sg tool run —运行draft或saved工具
  • sg tool edit -通过JSON补丁编辑
  • sg tool save -保存草稿
  • sg tool list -列出保存的工具
  • sg tool find -搜索工具

系统

  • sg system list -列出系统id
  • sg system find -搜索系统id并显示您的秘密占位符
  • sg system oauth-apps -列出可重用的OAuth应用
  • sg system connection get|set|clear -管理系统ID的连接
  • sg system call —通过连接进行认证呼叫
  • sg system oauth -通过OAuth授权连接

跑步

  • sg run list -列出执行运行
  • sg run get -获取运行细节

日程安排

  • sg schedule list —列出已保存的工具进度表
  • sg schedule create —为已保存的工具创建cron计划
  • sg schedule edit —编辑、启用或禁用时间表

项目

  • sg project list -项目列表
  • sg project task list -按板子顺序列出项目的任务
  • sg project task create —创建任务,可选 --position 在其列中
  • sg project task edit —更新、移动或重新排序任务

MCP服务器

  • sg mcp list —已命名的MCP服务器列表
  • sg mcp find —搜索MCP服务器
  • sg mcp create —为所选工具创建命名的MCP服务器
  • sg mcp edit -编辑已命名的MCP服务器及其暴露的工具

其他

  • sg login -浏览器OAuth设置
  • sg logout —删除存储的OAuth会话
  • sg whoami —显示通过认证的用户和组织
  • sg update —将CLI升级到最新版本

文档

许可证

麻省理工学院

版本与发布记录

@superglue/cli 共发布 268 个版本,首次发布于 2026/03/11;过去 12 个月发布了 268 个版本。

版本发布日期距今
1.1.265latest2026/11/02今天
1.1.2642026/11/02今天
1.1.2632026/11/02今天
1.1.2622026/10/313 天前
1.1.2612026/10/313 天前
1.1.2602026/10/313 天前

关于 @superglue/cli 的常见问题

如何安装 @superglue/cli?

在项目目录运行 npm install @superglue/cli,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 sg,可以用 npx sg 直接运行。

@superglue/cli 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/superglue__cli 是否存在。

@superglue/cli 可以商用吗?

@superglue/cli 使用 未声明 许可。package.json 没有声明许可证。没有许可证的代码默认保留全部权利,商用前请联系作者或查看仓库中的 LICENSE 文件。以上为概括,不构成法律意见,请以许可原文为准。

@superglue/cli 还在维护吗?

最新版本 1.1.265 发布于 2026/11/02(今天);至今共发布 268 个版本,其中过去 12 个月发布了 268 个;首次发布于 2026/03/11。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。