Skip to content
Development
Skill

/meoo-cli

从零到上线的全栈应用构建指南,基于秒悟(Meoo)平台。 触发条件: (1) 用户提到"秒悟"或"Meoo"; (2) 用户要从零构建应用,且需求可被以下架构覆盖:前端 SPA(React/Vue)+ Supabase(数据库/Auth/Storage)+ Deno 边缘函数 + AI 大模型服务; (3) 用户需要部署全栈应用(含后端进程),如 Next.js SSR、Express、FastAPI 等; (4) 用户需要把项目部署到自己的阿里云账号(ECS/RDS/SLB,费用自付)

From plugin
meoo-cli
251 skill
Install
$ npx -y skills add ali-meoo/meoo-cli --skill meoo-cli --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/meoo-cli

Context preview

The summary Claude sees to decide when to auto-load this skill.

从零到上线的全栈应用构建指南,基于秒悟(Meoo)平台。 触发条件: (1) 用户提到"秒悟"或"Meoo"; (2) 用户要从零构建应用,且需求可被以下架构覆盖:前端 SPA(React/Vue)+ Supabase(数据库/Auth/Storage)+ Deno 边缘函数 + AI 大模型服务; (3) 用户需要部署全栈应用(含后端进程),如 Next.js SSR、Express、FastAPI 等; (4) 用户需要把项目部署到自己的阿里云账号(ECS/RDS/SLB,费用自付)

SKILL.md

meoo-cli.SKILL.md
name: meoo-cli
description: >
  从零到上线的全栈应用构建指南,基于秒悟(Meoo)平台。
  触发条件:
  (1) 用户提到"秒悟"或"Meoo";
  (2) 用户要从零构建应用,且需求可被以下架构覆盖:前端 SPA(React/Vue)+ Supabase(数据库/Auth/Storage)+ Deno 边缘函数 + AI 大模型服务;
  (3) 用户需要部署全栈应用(含后端进程),如 Next.js SSR、Express、FastAPI 等;
  (4) 用户需要把项目部署到自己的阿里云账号(ECS/RDS/SLB,费用自付)
  覆盖完整生命周期:项目初始化、本地开发、云服务开通、数据库管理、边缘函数部署、CDN 发布、全栈镜像部署、沙箱代码同步、账户与权益管理。

秒悟(Meoo)CLI 完整指南

从零构建和部署全栈应用。覆盖项目初始化到生产部署的完整生命周期,包括云服务、代码规范、沙箱同步和部署。

Meoo 支持两种部署模式:**静态部署**(前端 SPA → CDN)和**镜像部署**(全栈应用 → 容器)。

| 项目类型 | 部署模式 | 命令 | |---|---|---| | 纯前端 SPA(React/Vue/Taro) | 静态部署 | `meoo deploy` | | 前端 + Supabase + Edge Functions | 静态部署 | `meoo deploy` | | 含后端进程(Express、FastAPI、Next.js SSR、Go 等) | 镜像部署 | `meoo deploy --runtime image` |

**如何判断**:项目是否需要一个监听端口的服务器进程?是 → 镜像部署;否 → 静态部署。

Install

npm install -g @aliyun-meoo/cli

Verify: `meoo --version`

Project lifecycle

Static deploy (SPA)

meoo login                      # 1. Authenticate (opens browser)
meoo init react-design          # 2. Initialize from template
meoo projects create "My App"   # 3. Create remote project and bind this directory
pnpm install                    # 4. Install dependencies
pnpm dev                        # 5. Local dev server (port 3015)
meoo deploy                     # 6. Build and publish to CDN

`init` 和项目绑定最终都必须完成,但顺序可以互换:既可以先 `init` 再 `projects create/use`,也可以在纯空目录先执行 `projects use`,随后 `init`。CLI 会在模板落盘后重新协调云环境与官方模板源码。

Image deploy (full-stack)

meoo login                      # 1. Authenticate
meoo init nextjs-app            # 2. Initialize from template (or bring your own project)
meoo projects create "My App"   # 3. Create project and bind to current directory
# ... develop your app locally ...
meoo deploy                     # 4. Upload, build remotely, deploy to container

Image deploy templates include `.meoo/config.json` with `runtime: "image"` pre-configured, so `meoo deploy` automatically uses image mode. If bringing your own project (without `meoo init`), add `scripts/setup.sh` + `scripts/start.sh` and run `meoo deploy --runtime image` for the first deploy.

Image deploy projects only support local development — they cannot be developed or previewed on the Meoo platform website (meoo.com). See `references/image-deploy.md` for required files and constraints.

After the first successful `meoo deploy --runtime image`, the runtime is saved to `.meoo/config.json`. Subsequent deploys only need `meoo deploy` — the CLI reads the saved runtime automatically.

Common steps (both modes)

**Cloud services are OPTIONAL** — only enable when the project needs database, user auth, or file storage:

meoo cloud enable               # Provision cloud services (PostgreSQL + Auth + Storage)
meoo cloud pull-env             # Pull Supabase keys to local .env

Do NOT run `meoo cloud enable` for purely frontend projects (static sites, CSS demos, calculators, etc.).

Cloud services are independent of deploy mode — see `references/cloud-patterns.md` for calling patterns.

Run `meoo info` or `meoo --json info` anytime to check environment constraints.

Publishing & deployment targets

Meoo has three deployment targets. Understanding them prevents common confusion.

  • **Sandbox(沙箱)**:秒悟应用内的测试运行环境。静态项目的源码通过 `meoo sandbox push` 或 `meoo deploy`(含推送)同步到沙箱,沙箱内 dev server 实时编译运行。在 `https://meoo.com/chat/<projectId>` 的编辑器中预览、查看代码和文件。**全栈镜像项目不支持 `meoo sandbox push`。**
  • **CDN(公网静态)**:静态部署专属。通过 `meoo deploy` 将本地 `dist/` 构建产物发布到 CDN,生成公网访问地址 `https://<id>.meoo.fun`。
  • **FC 容器(公网服务)**:镜像部署专属。通过 `meoo deploy --runtime image` 将源码上传到远程构建机,打包 Docker 镜像,部署到阿里云函数计算容器,生成公网访问地址。

| | Sandbox(沙箱) | CDN(静态部署) | FC 容器(镜像部署) | |---|---|---|---| | 用途 | 秒悟应用内预览、调试、协作 | 公网正式访问(静态) | 公网正式访问(全栈) | | 更新方式 | 静态项目:`meoo sandbox push` 或 `meoo deploy` | `meoo deploy` | `meoo deploy --runtime image` | | 访问入口 | `meoo.com/chat/<projectId>` | `<id>.meoo.fun` | `<id>.meoo.fun` |

**`meoo deploy` 流程(静态部署)**:已开通云服务的项目默认必须先将源码同步到沙箱,再从沙箱 Git HEAD 对应的源码构建并发布到 CDN。推送失败会停止发布;本地 Git HEAD 不用作这个链路的发布版本号。SINGLE 环境直接完成发布;DUAL 环境先准备未激活版本,云同步任务成功且服务端核验项目与 commit 匹配后才完成发布。默认同步云函数,不同步 Auth 与定时任务。交互时若拒绝同步源码,云服务项目的默认发布会停止;无云服务项目维持原有本地构建发布流程。AI/CI 中用 `meoo deploy --force` 跳过确认。

**兼容选项**:`meoo deploy --skip-push` 或 `--skip-build` 走本地产物 CDN 发布,不同步 DUAL 生产云服务,也不保证 CDN 产物与沙箱 commit 一致。`--skip-build` 仍可按旧行为推送源码,但发布产物来自本地。不要用这些选项发布需要云同步的新版本。

**规则**:静态项目如果需要在秒悟应用内预览或协作,源码必须通过 `meoo sandbox push` 或 `meoo deploy`(不加 `--skip-push`)同步到沙箱。全栈镜像项目不能使用 `meoo sandbox push`,应通过 `meoo deploy` 发布。

Migrating an existing project

**Frontend SPA**: If the user already has a React/Vue SPA and wants to deploy it on Meoo via static deploy, do NOT run `meoo init`. Read `references/migration.md` for the complete migration flow: compatibility check, build config adaptation (Vite/Webpack), hash routing switch, pnpm migration, backend-to-Edge-Function conversion, and pre-deploy checklist.

**Full-stack app**: If the user has an existing app with a backend (Express, FastAPI, Next.js, etc.), use image deploy. No template migration needed — just add `scripts/setup.sh` and `scripts/start.sh`, then `meoo deploy --runtime image`. See `references/image-deploy.md` for full requirements and example scripts.

---

Platform constraints

Constraints differ by deploy mode. **Read the relevant reference before starting any project work:**

  • **Static deploy**: Read `references/static-deploy.md` — port 3015, hash routing, build output rules, pnpm only, no backend servers, code style rules
  • **Image deploy**: Read `references/image-deploy.md` — port 9000, `scripts/setup.sh` + `scripts/start.sh`, cold start

---

CLI command reference

All commands support `--json` for structured output. Run `meoo <command> --help` for details.

Authentication & Account

meoo login                         # Browser-based login (recommended, opens browser for authorization)
meoo login --ak <key>              # Login with API Key (for CI/CD or manual setup)
meoo logout
Read more
Ships withmeoo-cli

秒悟(Meoo)官方命令行工具,让 Claude Code、Codex、Cursor、Qoder 等本地 AI 助手在帮你写完前端代码后,能直接接管「数据库、用户登录、文件存储、部署上线」的所有云端工作——你只需要在终端跑一条命令,剩下的交给 AI。 完整文档索引 获取所有可用文档页面的完整列表。

Get the whole plugin
Stats
26
Stars
1
Forks
Active
Maintenance
2d ago
Last commit
3mo ago
Created

Repo: ali-meoo/meoo-cli