@superglue/cli

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

npm License

原始使用文档
文档目录16 节
  1. Installation
  2. As npm package
  3. As AI Agent Skill
  4. As Claude Code Plugin
  5. Quick Start
  6. Commands
  7. Tools
  8. Systems
  9. Runs
  10. Schedules
  11. Projects
  12. MCP Servers
  13. Other
  14. Documentation
  15. Related
  16. License

superglue CLI

npm License

Build, test, and manage superglue tools from the command line.

Installation

As npm package

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

As AI Agent Skill

Install the superglue skill for any supported AI agent (35+ agents supported):

npx skills add superglue-ai/cli

Or target a specific agent:

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 Plugin

Load from local install:

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

Quick Start

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

Pass --timezone UTC to sg schedule create when you want to set the schedule timezone explicitly.

The CLI needs authentication and the target superglue API endpoint. Use sg login for browser OAuth setup. For headless/API-key auth, use SUPERGLUE_API_KEY / SUPERGLUE_API_ENDPOINT, --api-key / --endpoint, or an existing config.json. For self-hosted instances, use that instance's API endpoint and pass --web-endpoint to sg login when the web app URL differs from the API URL. Add --save-config to persist those non-secret endpoint settings in config.json.

Commands

Tools

  • sg tool build — Build a tool from config
  • sg tool run — Run a draft or saved tool
  • sg tool edit — Edit via JSON Patch
  • sg tool save — Save a draft
  • sg tool list — List saved tools
  • sg tool find — Search tools

Systems

  • sg system list — List system IDs
  • sg system find — Search system IDs and show your secret placeholders
  • sg system oauth-apps — List reusable OAuth apps
  • sg system connection get|set|clear — Manage your connection for a system ID
  • sg system call — Make authenticated calls through a connection
  • sg system oauth — Authorize a connection via OAuth

Runs

  • sg run list — List execution runs
  • sg run get — Get run details

Schedules

  • sg schedule list — List saved tool schedules
  • sg schedule create — Create a cron schedule for a saved tool
  • sg schedule edit — Edit, enable, or disable a schedule

Projects

  • sg project list — List projects
  • sg project task list — List a project's tasks in board order
  • sg project task create — Create a task, optionally at a --position in its column
  • sg project task edit — Update, move, or reorder a task

MCP Servers

  • sg mcp list — List named MCP servers
  • sg mcp find — Search MCP servers
  • sg mcp create — Create a named MCP server for selected tools
  • sg mcp edit — Edit a named MCP server and its exposed tools

Other

  • sg login — Browser OAuth setup
  • sg logout — Remove the stored OAuth session
  • sg whoami — Show the authenticated user and organization
  • sg update — Update CLI to latest version

Documentation

License

MIT

版本与发布记录

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

版本发布日期距今
1.1.265latest2026/11/02今天
1.1.2642026/11/021 天前
1.1.2632026/11/021 天前
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 和提交记录判断。