nocobase-app-installer
它能做什么
这项技能使用 app-installer 工具,在本地机器或通过 SSH 安装已构建好的 NocoBase 3 应用。适合在生产环境中运行 NocoBase、需要升级或回滚的人员。
适用场景
- ✓当你想把已构建的 NocoBase 3 应用部署到生产服务器时。
- ✓当你需要升级或回滚已有的 NocoBase 安装时。
- ✓当你需要检查 NocoBase 安装是否正常运行时。
技能链接
https://github.com/nocobase/nocobase/blob/v3-develop/skills/nocobase-app-installer/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我在离线 Linux 服务器上安装已构建的 NocoBase 压缩包,并检查它能否启动。”
每周 5 个新技能,1 分钟读完。
工作原理
AI 会使用部署压缩包运行安装程序。每个版本都会单独安装,升级时会保留配置、存储和备份。然后它会检查结果。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Install and run NocoBase 3 with app-installer
This Skill installs NocoBase that is already built — nothing on the machine is developed, only run. @nocobase/app-installer puts each release under releases/<version>_<build time>/app and runs it under pm2; config.yml, app.env, storage/, backups/ and logs/ sit beside the releases and survive every upgrade. It installs from --archive, a deployment archive built in an application project. This Skill decides when to use it and how to act on what it reports; --help is the reference for every flag.
Run it
Run the installer on the machine where the Agent works, with the registry named and --json. For SSH deployment this is the local machine, not the server:
npx --yes --registry="${NOCOBASE_REGISTRY:-https://registry.npmjs.org}" @nocobase/app-installer@beta <command> … --json
Use @beta for the published installer; do not fall back to an untagged invocation or @latest. Preserve an explicit version required for an existing installation or requested by the user, and use the snapshot tag when testing an unreleased local registry.
NocoBase 3 publishes to the public npm registry. NOCOBASE_REGISTRY is set only when someone points the shell at another registry, such as an unreleased snapshot; the installer records the registry in installer.json and suggests commands from it. The --yes before the package is npx's own: it downloads the installer without asking. The installer's --yes, after the command, is a separate answer that only the user gives.
Use the published beta channel unless the user specifies an exact version. An unreleased snapshot registry tags its packages latest; use that tag only when testing such a registry. Check --help before deploying to confirm the selected version supports deploy and --ssh.
--json prints one document on stdout and progress on stderr, in the same envelope as pnpm nocobase … --json. Read the document, not the exit code alone: ok, status (success, success-noop or failure), result, and on failure error.code, error.message, error.suggestions and error.details. Each suggestion has a message and, where there is one, a run of { command, args }: an executable and its arguments, run as given without a shell. app-installer 0.1.0-beta.1 and earlier, which a suggested command pinned to that version still runs, print status error and run as one shell line that runs as printed, so tell success from failure by ok.
| Exit | Meaning |
|---|---|
0 |
Done, or nothing to do (success-noop). |
1 |
Failed; an application that was already running was not touched. |
2 |
Invalid usage, a failed precheck, or a confirmation still needed; nothing was written. |
3 |
An upgrade failed after switching and was rolled back; the previous release is running. |
4 |
Rolling back failed too; the application is down. |
Choose the route
A project is source code someone changes, created by nocobase-create-app and developed locally; an installation is a built NocoBase that only runs, made by this Skill, usually in production. Settle the route before installing anything:
| The user asks to | Route |
|---|---|
| Install, create or try NocoBase, to develop with | The nocobase-create-app Skill |
| Deploy an application to production or a server | This Skill, --archive, from the application's deployment archive |
| Run it with Docker | The application's nocobase-deployment Skill and Docker configuration |
- "Install NocoBase on this server" with no project and no archive is not settled yet. Running the user's own application means creating it locally with `nocobase-create-a
常见问题
它会构建应用吗?
不会。它只安装并运行已经构建好的应用。
升级时我的文件会保留吗?
会。技能说明,配置、存储、备份和日志在升级后都会保留。
它能在离线服务器上使用吗?
可以。它就是为离线 Linux 服务器设计的。
详情
作者的原始描述
Deploy a built NocoBase 3 application locally or over SSH to an offline Linux server, for production, with `@nocobase/app-installer` from the deployment archive `pnpm build --tar` writes, then upgrade, roll back and check it. Use when the user asks to deploy an application to production or a server, to upgrade or roll back such an installation, or when the directory holds an `installer.json` written by app-installer. Not for creating a project to develop, which is the `nocobase-create-app` Skill.
repo: nocobase/nocobase
热度
- GitHub 星标
- 25k
- 排名
- #10108
- 许可证
- —
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
nocobase-app-development
25k帮你的智能体为完整的 NocoBase 3 业务应用构建页面、路由、数据、权限和测试。
shadcn
25k帮你的智能体在 Web 项目中查找、添加、修复和美化 shadcn/ui 组件,并使用其官方文档和注册表。
nocobase-app-plugin-development
25k帮你的智能体在现有应用中创建和维护 NocoBase 3 插件,包括服务端、客户端、数据库和注册部分。
nocobase-app-upgrade
25k帮你的智能体把 NocoBase 应用升级到较新的模板版本,引入模板的更改,同时保留你自己的工作。