licell 0.10.12 → 0.10.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +153 -121
- package/dist/licell.js +550 -226
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ Licell 是一个面向阿里云的部署与运维 CLI,同时兼顾人类用户
|
|
|
9
9
|
- 一个主入口:`deploy`
|
|
10
10
|
- 一份项目状态:`.licell/project.json`
|
|
11
11
|
- 一套可组合的资源原子命令:`fn` / `oss` / `dns` / `domain`
|
|
12
|
-
- 一套面向 Agent
|
|
12
|
+
- 一套面向 Agent 的统一表面:`catalog` / `--help` / `--output json` / `skills`
|
|
13
13
|
|
|
14
14
|
默认地域为 `cn-hangzhou`。用于 Agent 自动化时,建议使用独立测试账号或独立地域,不要直接共用生产环境。团队协作下,推荐采用后文的“团队授权分发”模式。
|
|
15
15
|
|
|
@@ -20,17 +20,18 @@ Licell 是一个面向阿里云的部署与运维 CLI,同时兼顾人类用户
|
|
|
20
20
|
如果你把 Vercel CLI 的“单主线体验”搬到阿里云,大致就是 Licell 想做的事情:
|
|
21
21
|
|
|
22
22
|
- **人类友好**:`init -> deploy -> release -> rollback`
|
|
23
|
-
- **Agent 友好**:命令自描述、结构化帮助、结构化输出、
|
|
23
|
+
- **Agent 友好**:命令自描述、结构化帮助、结构化输出、catalog、skills
|
|
24
24
|
- **架构清晰**:workflow 命令负责“得到结果”,原子命令负责“精确控制资源”
|
|
25
25
|
|
|
26
26
|
Licell 当前覆盖的核心能力包括:
|
|
27
27
|
|
|
28
28
|
- FC API 部署与发布
|
|
29
|
+
- FC Task 部署、异步触发与任务追踪
|
|
29
30
|
- OSS 静态站部署
|
|
30
31
|
- 自定义域名、HTTPS、CDN、DNS
|
|
31
32
|
- ACR / Docker 镜像部署
|
|
32
33
|
- Serverless 数据库与缓存辅助能力
|
|
33
|
-
- 面向 Agent 的
|
|
34
|
+
- 面向 Agent 的 Skills / catalog / JSON 输出 / 文档共源生成
|
|
34
35
|
|
|
35
36
|
---
|
|
36
37
|
|
|
@@ -71,15 +72,15 @@ Licell 最新架构里,命令不再只是“能执行”,还要“能自我
|
|
|
71
72
|
|
|
72
73
|
同一套命令注册表会驱动:
|
|
73
74
|
|
|
75
|
+
- CLI `catalog`
|
|
74
76
|
- CLI `--help`
|
|
75
77
|
- 结构化 help
|
|
76
|
-
- MCP tool catalog
|
|
77
78
|
- skills 脚手架
|
|
78
79
|
- README 生成区块
|
|
79
80
|
- Agent surface 文档
|
|
80
81
|
- shell completion
|
|
81
82
|
|
|
82
|
-
|
|
83
|
+
也就是说:**命令面变了,catalog、帮助、skills、文档会跟着一起收敛**。
|
|
83
84
|
|
|
84
85
|
---
|
|
85
86
|
|
|
@@ -149,6 +150,15 @@ licell init --runtime nodejs22
|
|
|
149
150
|
licell deploy --type api --target preview
|
|
150
151
|
```
|
|
151
152
|
|
|
153
|
+
### 给 Task 项目
|
|
154
|
+
|
|
155
|
+
```bash
|
|
156
|
+
licell login --region cn-hangzhou
|
|
157
|
+
licell init --runtime nodejs22 --kind task
|
|
158
|
+
licell deploy --type task --target preview
|
|
159
|
+
licell task invoke <appName> --target preview --payload '{"job":"demo"}'
|
|
160
|
+
```
|
|
161
|
+
|
|
152
162
|
### 给 Agent / 自动化调用方
|
|
153
163
|
|
|
154
164
|
推荐固定顺序:
|
|
@@ -171,7 +181,6 @@ Licell 有三类核心状态:
|
|
|
171
181
|
|------|----------|------|
|
|
172
182
|
| 全局认证 | `~/.licell-cli/auth.json` | 阿里云凭证与默认 region |
|
|
173
183
|
| 项目状态 | `<project>/.licell/project.json` | appName、环境变量、网络、部署状态 |
|
|
174
|
-
| MCP 项目配置 | `<project>/.mcp.json` | 供 Claude / Codex / Cursor 发现 licell MCP server |
|
|
175
184
|
|
|
176
185
|
兼容性说明:
|
|
177
186
|
|
|
@@ -235,7 +244,7 @@ licell domain app bind --help --output json
|
|
|
235
244
|
|
|
236
245
|
## 2) 结构化输出 `--output json`
|
|
237
246
|
|
|
238
|
-
|
|
247
|
+
几乎所有命令都支持结构化 JSON 结果:
|
|
239
248
|
|
|
240
249
|
```bash
|
|
241
250
|
licell deploy --type api --output json
|
|
@@ -252,44 +261,21 @@ licell oss info my-bucket --output json
|
|
|
252
261
|
- `retryable`
|
|
253
262
|
- `provider.requestId`
|
|
254
263
|
|
|
255
|
-
## 3)
|
|
256
|
-
|
|
257
|
-
如果你希望 Claude Code、Codex、Cursor 等 Agent 直接把 `licell` 当作工具调用,用 MCP 是最自然的方式。
|
|
264
|
+
## 3) 命令目录 `catalog`
|
|
258
265
|
|
|
259
|
-
|
|
266
|
+
如果你希望 Claude Code、Codex、Cursor 等 Agent 直接驱动 `licell`,推荐走这条固定链路:
|
|
260
267
|
|
|
261
268
|
```bash
|
|
262
|
-
licell
|
|
263
|
-
licell
|
|
264
|
-
licell
|
|
265
|
-
```
|
|
266
|
-
|
|
267
|
-
### 项目内初始化 MCP
|
|
268
|
-
|
|
269
|
-
```bash
|
|
270
|
-
licell mcp init
|
|
271
|
-
```
|
|
272
|
-
|
|
273
|
-
默认会生成:
|
|
274
|
-
|
|
275
|
-
```json
|
|
276
|
-
{
|
|
277
|
-
"mcpServers": {
|
|
278
|
-
"licell": {
|
|
279
|
-
"command": "licell",
|
|
280
|
-
"args": ["mcp", "serve"]
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
}
|
|
269
|
+
licell catalog --output json
|
|
270
|
+
licell deploy --help --output json
|
|
271
|
+
licell deploy --type api --output json
|
|
284
272
|
```
|
|
285
273
|
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
```bash
|
|
289
|
-
licell mcp serve
|
|
290
|
-
```
|
|
274
|
+
含义分别是:
|
|
291
275
|
|
|
292
|
-
|
|
276
|
+
- `catalog`:发现稳定 command key、选项、schema 与 CLI record contract
|
|
277
|
+
- `--help --output json`:读取单命令的参数、结果、推荐流程与下一步
|
|
278
|
+
- `--output json`:真正执行命令,并消费 `event / result / error` records
|
|
293
279
|
|
|
294
280
|
## 4) Skills
|
|
295
281
|
|
|
@@ -300,7 +286,7 @@ licell skills init codex
|
|
|
300
286
|
licell skills init claude
|
|
301
287
|
```
|
|
302
288
|
|
|
303
|
-
Skills 与
|
|
289
|
+
Skills 与 catalog、help、README 共享同一套命令描述体系,所以更容易保持一致。
|
|
304
290
|
|
|
305
291
|
---
|
|
306
292
|
|
|
@@ -350,20 +336,6 @@ licell deploy --type api --runtime nodejs22 --entry src/index.ts --domain api.yo
|
|
|
350
336
|
- 默认不再把大体积 fallback runtime 打进代码包,避免放大 FC 上传体积
|
|
351
337
|
- 如需额外打包 fallback runtime,可显式设置 `LICELL_FC_INCLUDE_RUNTIME_FALLBACK=1`
|
|
352
338
|
|
|
353
|
-
<!-- BEGIN GENERATED:README_MCP_FC_API_WORKFLOW -->
|
|
354
|
-
`licell mcp` 已提供这组 FC API 部署工作流工具(由共享 MCP 注册表自动生成):
|
|
355
|
-
|
|
356
|
-
| Tool | 对应 CLI | 用途 |
|
|
357
|
-
|------|----------|------|
|
|
358
|
-
| `licell_fc_deploy_spec` | `licell deploy spec` | 读取 FC API runtime 的 entry / handler / 资源约束,帮助 Agent 先理解限制与签名模板。 |
|
|
359
|
-
| `licell_fc_deploy_check` | `licell deploy check` | 只读预检当前项目,提前发现 handler、入口文件或 Docker 环境问题,并给出可执行修复建议。 |
|
|
360
|
-
| `licell_deploy` | `licell deploy` | 在前两步通过后执行正式部署,将当前项目发布到阿里云。 |
|
|
361
|
-
|
|
362
|
-
- Workflow:标准 FC API 部署链路:先读取部署规格,再做本地预检,最后执行正式部署。
|
|
363
|
-
|
|
364
|
-
- 建议顺序:`licell_fc_deploy_spec` → `licell_fc_deploy_check` → `licell_deploy`
|
|
365
|
-
<!-- END GENERATED:README_MCP_FC_API_WORKFLOW -->
|
|
366
|
-
|
|
367
339
|
## 静态站部署(OSS)
|
|
368
340
|
|
|
369
341
|
```bash
|
|
@@ -430,58 +402,6 @@ licell rollback
|
|
|
430
402
|
- **想要结果**:先用 `domain app/static` 或 `deploy`
|
|
431
403
|
- **要精细控制**:再落到 `fn domain` / `oss domain` / `dns records`
|
|
432
404
|
|
|
433
|
-
<!-- BEGIN GENERATED:README_MCP_DOMAIN_WORKFLOWS -->
|
|
434
|
-
`licell mcp` 也提供共享的域名编排 workflow 工具:
|
|
435
|
-
|
|
436
|
-
#### 应用域名绑定
|
|
437
|
-
|
|
438
|
-
通过一个入口同时编排 DNS、FC custom domain 与可选 HTTPS。
|
|
439
|
-
|
|
440
|
-
| Tool | 对应 CLI | 用途 |
|
|
441
|
-
|------|----------|------|
|
|
442
|
-
| `licell_domain_app_bind` | `licell domain app bind` | 为当前应用绑定自定义域名,编排 DNS、FC custom domain 与可选 HTTPS。 |
|
|
443
|
-
|
|
444
|
-
- Workflow:应用域名接入链路:绑定 FC custom domain、对齐 DNS,并可选自动签发 HTTPS。
|
|
445
|
-
|
|
446
|
-
- 建议顺序:`licell_domain_app_bind`
|
|
447
|
-
|
|
448
|
-
#### 静态站点域名绑定
|
|
449
|
-
|
|
450
|
-
通过一个入口同时编排 CDN、DNS 与可选 HTTPS。
|
|
451
|
-
|
|
452
|
-
| Tool | 对应 CLI | 用途 |
|
|
453
|
-
|------|----------|------|
|
|
454
|
-
| `licell_domain_static_bind` | `licell domain static bind` | 为静态站点绑定自定义域名,编排 CDN、DNS 与可选 HTTPS。 |
|
|
455
|
-
|
|
456
|
-
- Workflow:静态站点域名接入链路:把域名接到 CDN、对齐 DNS,并可选自动启用 HTTPS。
|
|
457
|
-
|
|
458
|
-
- 建议顺序:`licell_domain_static_bind`
|
|
459
|
-
|
|
460
|
-
#### 应用域名解绑
|
|
461
|
-
|
|
462
|
-
通过一个入口下线应用域名,并清理 FC custom domain / DNS。
|
|
463
|
-
|
|
464
|
-
| Tool | 对应 CLI | 用途 |
|
|
465
|
-
|------|----------|------|
|
|
466
|
-
| `licell_domain_app_unbind` | `licell domain app unbind` | 解绑当前应用域名,并清理 FC custom domain / DNS CNAME。 |
|
|
467
|
-
|
|
468
|
-
- Workflow:应用域名下线链路:解绑 FC custom domain,并清理对应 DNS CNAME。
|
|
469
|
-
|
|
470
|
-
- 建议顺序:`licell_domain_app_unbind`
|
|
471
|
-
|
|
472
|
-
#### 静态站点域名解绑
|
|
473
|
-
|
|
474
|
-
通过一个入口下线静态站点域名,并清理 CDN / DNS。
|
|
475
|
-
|
|
476
|
-
| Tool | 对应 CLI | 用途 |
|
|
477
|
-
|------|----------|------|
|
|
478
|
-
| `licell_domain_static_unbind` | `licell domain static unbind` | 解绑静态站点域名,并清理 CDN domain / DNS CNAME。 |
|
|
479
|
-
|
|
480
|
-
- Workflow:静态站点域名下线链路:移除 CDN domain,并清理对应 DNS CNAME。
|
|
481
|
-
|
|
482
|
-
- 建议顺序:`licell_domain_static_unbind`
|
|
483
|
-
<!-- END GENERATED:README_MCP_DOMAIN_WORKFLOWS -->
|
|
484
|
-
|
|
485
405
|
---
|
|
486
406
|
|
|
487
407
|
## 示例与教程
|
|
@@ -499,6 +419,8 @@ licell rollback
|
|
|
499
419
|
- `examples/node22-express-api`
|
|
500
420
|
- `examples/python313-flask-api`
|
|
501
421
|
- `examples/docker-bun-hono-api`
|
|
422
|
+
- `examples/node22-task-worker`
|
|
423
|
+
- `examples/python313-task-worker`
|
|
502
424
|
- `examples/static-oss-site`
|
|
503
425
|
|
|
504
426
|
---
|
|
@@ -546,14 +468,103 @@ licell e2e cleanup <runId>
|
|
|
546
468
|
## 命令速查
|
|
547
469
|
|
|
548
470
|
<!-- BEGIN GENERATED:README_QUICK_REFERENCE -->
|
|
549
|
-
> 本节由 licell CLI 注册表自动生成;命令变更会同步到 README / docs/reference/agent-surfaces.md / Skills /
|
|
471
|
+
> 本节由 licell CLI 注册表自动生成;命令变更会同步到 README / docs/reference/agent-surfaces.md / Skills / Shell Completion。
|
|
550
472
|
|
|
551
473
|
### Agent Contract
|
|
552
474
|
|
|
553
|
-
-
|
|
554
|
-
-
|
|
555
|
-
-
|
|
556
|
-
-
|
|
475
|
+
- 发现命令目录:`licell catalog --output json`。
|
|
476
|
+
- 读取单命令契约:`licell <command> --help --output json`。
|
|
477
|
+
- 真正执行命令:`licell <command> --output json`,并过滤 `@@LICELL_JSON@@` 前缀逐行解析。
|
|
478
|
+
- 对 `type=event` 的 record,优先读取稳定字段 `stage` / `action` / `status` / `source` / `terminal`。
|
|
479
|
+
- 对 `type=error` 的 record,优先读取 `nextActions[]` 获取首选补救步骤。
|
|
480
|
+
|
|
481
|
+
#### Schema Contracts
|
|
482
|
+
|
|
483
|
+
- 原始 CLI JSON 流会使用前缀 `@@LICELL_JSON@@` 输出逐行 JSON record;每条 record 当前都满足 `licell-cli-record@1.0`,再通过 `type=event|result|error` 区分记录类型。
|
|
484
|
+
- `licell <command> --help --output json`:读取 `help.kind` / `help.schemaVersion`;当前为 `licell-help@1.0`。
|
|
485
|
+
- `licell catalog --output json`:读取 `kind` / `schemaVersion`;当前为 `licell-agent-command-catalog@1.0`。
|
|
486
|
+
- `licell catalog --output json` 还会显式声明 help schema 与 CLI record schema:`licell-help@1.0` / `licell-cli-record@1.0`。
|
|
487
|
+
- Agent 优先读取 `nextActions[]` 作为稳定下一步入口;`recommendedFlow` / `decisionGuide` / `remediation[]` 作为补充语义层。
|
|
488
|
+
- 命令自己的业务结果字段继续读取对应命令 help / catalog 里的 `result`;下面三组 contract 只描述公共 CLI record 包络。
|
|
489
|
+
|
|
490
|
+
### CLI Event Record · licell-cli-record@1.0
|
|
491
|
+
|
|
492
|
+
- CLI 流式事件 record;适合驱动 Agent 的进度感知、日志桥接和阶段判断。
|
|
493
|
+
- `kind`:固定为 `licell-cli-record`。
|
|
494
|
+
- `schemaVersion`:CLI record schema 版本;当前为 `1.0`。
|
|
495
|
+
- `type`:固定为 `event`。
|
|
496
|
+
- `ts`:事件发出时间(ISO 8601)。
|
|
497
|
+
- `command`:当前命令 key,例如 `deploy`、`oss upload`。
|
|
498
|
+
- `stage`:稳定阶段标识,例如 `deploy`、`deploy.api`、`auth.restore`。
|
|
499
|
+
- `action`:稳定动作标识,例如 `run`、`execute`、`stdout`。
|
|
500
|
+
- `status`:`start` / `ok` / `failed` / `skipped` / `info`。
|
|
501
|
+
- `source`:`command` / `console` / `stream`。
|
|
502
|
+
- `terminal`:该事件是否代表当前动作进入终态。
|
|
503
|
+
- `ok`(可选):仅在终态成功/失败事件中出现;`true` 表示成功,`false` 表示失败。
|
|
504
|
+
- `message`(可选):面向人类的补充消息。
|
|
505
|
+
- `data`(可选):附加结构化上下文对象。
|
|
506
|
+
- `stream`(可选):当 `action=stdout|stderr` 时给出流类型。
|
|
507
|
+
|
|
508
|
+
### CLI Result Record Envelope
|
|
509
|
+
|
|
510
|
+
- CLI 成功结果 record;公共包络固定,命令自定义 payload 字段请继续读取对应命令 help/catalog 中的 `result`。
|
|
511
|
+
- `kind`:固定为 `licell-cli-record`。
|
|
512
|
+
- `schemaVersion`:CLI record schema 版本;当前为 `1.0`。
|
|
513
|
+
- `type`:固定为 `result`。
|
|
514
|
+
- `ts`:结果发出时间(ISO 8601)。
|
|
515
|
+
- `command`:当前命令 key。
|
|
516
|
+
- `stage`:命令阶段标识;通常与命令 key 或子阶段一致。
|
|
517
|
+
- `ok`:固定为 `true`。
|
|
518
|
+
|
|
519
|
+
### CLI Error Record
|
|
520
|
+
|
|
521
|
+
- CLI 错误结果 record;同时提供兼容层 remediation/nextCommands 和首选的 nextActions。
|
|
522
|
+
- `kind`:固定为 `licell-cli-record`。
|
|
523
|
+
- `schemaVersion`:CLI record schema 版本;当前为 `1.0`。
|
|
524
|
+
- `type`:固定为 `error`。
|
|
525
|
+
- `ts`:错误发出时间(ISO 8601)。
|
|
526
|
+
- `command`:当前命令 key。
|
|
527
|
+
- `stage`:错误阶段,例如 `parse`、`runtime`、`deploy`。
|
|
528
|
+
- `ok`:固定为 `false`。
|
|
529
|
+
- `error`:稳定错误对象。
|
|
530
|
+
- `code`:稳定错误码,例如 `CLI_INVALID_INPUT`、`AUTH_MISSING_CREDENTIAL`。
|
|
531
|
+
- `category`:`auth` / `permission` / `input` / `network` / `quota` / `conflict` / `not_found` / `internal`。
|
|
532
|
+
- `message`:错误主消息。
|
|
533
|
+
- `retryable`:该错误是否适合直接重试。
|
|
534
|
+
- `provider`(可选):阿里云 provider 侧上下文。
|
|
535
|
+
- `service`(可选):云产品名,例如 `fc`、`oss`、`alidns`。
|
|
536
|
+
- `action`(可选):云 API 动作名。
|
|
537
|
+
- `code`(可选):云侧原始错误码。
|
|
538
|
+
- `requestId`(可选):云侧 requestId。
|
|
539
|
+
- `httpStatus`(可选):云侧 HTTP 状态码。
|
|
540
|
+
- `endpoint`(可选):命中的云 API endpoint。
|
|
541
|
+
- `details`(可选):额外结构化错误上下文。
|
|
542
|
+
- `remediation[]`:兼容层修复建议数组。
|
|
543
|
+
- `type`:建议类型,例如 `note` / `command`。
|
|
544
|
+
- `title`:修复建议标题。
|
|
545
|
+
- `reason`:为什么建议这样做。
|
|
546
|
+
- `commandTemplate`:建议命令模板。
|
|
547
|
+
- `commandKey`(可选):若可匹配 CLI 注册表,则给出稳定 command key。
|
|
548
|
+
- `commandDescription`(可选):匹配到的命令说明。
|
|
549
|
+
- `phase`:修复阶段,例如 `inspect` / `mutate` / `verify`。
|
|
550
|
+
- `priority`:`primary` / `secondary`。
|
|
551
|
+
- `order`:稳定排序值。
|
|
552
|
+
- `nextCommands[]`:兼容层命令建议数组。
|
|
553
|
+
- `commandTemplate`:建议命令模板。
|
|
554
|
+
- `commandKey`(可选):若可匹配 CLI 注册表,则给出稳定 command key。
|
|
555
|
+
- `description`(可选):命令建议说明。
|
|
556
|
+
- `intent`:命令意图,例如 `inspect` / `repair` / `bind`。
|
|
557
|
+
- `priority`:`primary` / `secondary`。
|
|
558
|
+
- `nextActions[]`:推荐优先消费的统一下一步数组。
|
|
559
|
+
- `title`:下一步动作标题。
|
|
560
|
+
- `description`:为什么建议执行这一步。
|
|
561
|
+
- `commandTemplate`:建议命令模板。
|
|
562
|
+
- `commandKey`(可选):若可匹配 CLI 注册表,则给出稳定 command key。
|
|
563
|
+
- `phase`:动作阶段,例如 `inspect` / `verify` / `mutate`。
|
|
564
|
+
- `priority`:`primary` / `secondary`。
|
|
565
|
+
- `source`:动作来源,例如 `error-remediation`。
|
|
566
|
+
|
|
567
|
+
- Agent 侧做强约束解析时,先匹配 `kind`,再检查 `schemaVersion`;未知更高版本应走兼容分支或降级为文本解析。
|
|
557
568
|
|
|
558
569
|
### 命令总览
|
|
559
570
|
|
|
@@ -570,7 +581,7 @@ licell e2e cleanup <runId>
|
|
|
570
581
|
| `licell logout` | 清除本地凭证 | — |
|
|
571
582
|
| `licell whoami` | 查看当前登录身份 | — |
|
|
572
583
|
| `licell switch` | 切换默认 region | `--region` |
|
|
573
|
-
| `licell init` | 初始化 FC 项目(空目录生成脚手架,已有项目写入 licell 配置) | `--runtime`, `--
|
|
584
|
+
| `licell init` | 初始化 FC 项目(空目录生成脚手架,已有项目写入 licell 配置) | `--runtime`, `--kind`, `--app` |
|
|
574
585
|
| `licell config domain [suffix]` | 查看或设置全局默认域名后缀 | `--unset` |
|
|
575
586
|
|
|
576
587
|
#### Delivery Workflow
|
|
@@ -579,12 +590,20 @@ licell e2e cleanup <runId>
|
|
|
579
590
|
|
|
580
591
|
- Agent 在 FC API 部署前,优先执行 `licell deploy spec` 与 `licell deploy check`。
|
|
581
592
|
- 涉及删除或清理的命令通常需要显式传入 `--yes`。
|
|
593
|
+
- 任务函数通过 `licell deploy --type task` 交付;部署成功后不返回固定 URL,而是继续用 `licell task invoke / info / list / stop` 完成调用与排查。
|
|
582
594
|
|
|
583
595
|
| 命令 | 说明 | 关键选项 |
|
|
584
596
|
|------|------|----------|
|
|
585
597
|
| `licell deploy` | 一键极速打包部署 | `--type`, `--entry`, `--dist` |
|
|
586
598
|
| `licell deploy check` | 本地预检 FC API 入口与 runtime 约束(建议 deploy 前执行) | `--runtime`, `--entry`, `--docker-daemon` |
|
|
587
599
|
| `licell deploy spec [runtime]` | 查看 FC API 部署规格(给 Agent/开发者在 deploy 前对照) | `--all` |
|
|
600
|
+
| `licell task config [name]` | 查看任务函数的异步调用配置 | `--target` |
|
|
601
|
+
| `licell task info <taskId> [name]` | 查看单个异步任务详情 | `--target` |
|
|
602
|
+
| `licell task invoke [name]` | 异步调用任务函数 | `--target`, `--payload`, `--file` |
|
|
603
|
+
| `licell task list [name]` | 查看任务函数的异步任务列表 | `--target`, `--status`, `--prefix` |
|
|
604
|
+
| `licell task stop <taskId> [name]` | 停止正在运行的异步任务 | `--target` |
|
|
605
|
+
| `licell task config rm [name]` | 删除任务函数的异步调用配置 | `--target`, `--yes` |
|
|
606
|
+
| `licell task config set [name]` | 写入任务函数的异步调用配置 | `--target`, `--enable`, `--disable` |
|
|
588
607
|
| `licell release list` | 查看函数版本列表 | `--limit` |
|
|
589
608
|
| `licell release promote [versionId]` | 发布并切流到目标别名 | `--target` |
|
|
590
609
|
| `licell release prune` | 清理历史函数版本(默认仅预览) | `--keep`, `--apply`, `--yes` |
|
|
@@ -634,12 +653,14 @@ licell e2e cleanup <runId>
|
|
|
634
653
|
| 命令 | 说明 | 关键选项 |
|
|
635
654
|
|------|------|----------|
|
|
636
655
|
| `licell db add` | 分配数据库实例 | `--type`, `--engine-version`, `--category` |
|
|
656
|
+
| `licell db class [type]` | 查询数据库可用规格(给 Agent/开发者在 db add 前对照) | `--engine-version`, `--category`, `--storage-type` |
|
|
637
657
|
| `licell db connect [instanceId]` | 输出数据库连接信息 | — |
|
|
638
658
|
| `licell db info <instanceId>` | 查看数据库实例详情 | — |
|
|
639
659
|
| `licell db list` | 查看数据库实例列表 | `--limit` |
|
|
640
660
|
| `licell db public-access [instanceId]` | 开通数据库公网访问并添加当前 IP 到白名单 | `--ip` |
|
|
641
661
|
| `licell db rm <instanceId>` | 删除数据库实例 | `--yes` |
|
|
642
|
-
| `licell cache add` | 分配 Redis 缓存 | `--type`, `--
|
|
662
|
+
| `licell cache add` | 分配 Redis 缓存 | `--type`, `--mode`, `--instance` |
|
|
663
|
+
| `licell cache class [mode]` | 查询缓存可用规格(给 Agent/开发者在 cache add 前对照) | `--zone`, `--limit` |
|
|
643
664
|
| `licell cache connect [instanceId]` | 输出缓存连接信息 | — |
|
|
644
665
|
| `licell cache info <instanceId>` | 查看缓存实例详情 | — |
|
|
645
666
|
| `licell cache list` | 查看缓存实例列表 | `--limit` |
|
|
@@ -662,16 +683,15 @@ licell e2e cleanup <runId>
|
|
|
662
683
|
|
|
663
684
|
面向 Agent、开发体验与 CLI 生命周期的自动化命令。
|
|
664
685
|
|
|
665
|
-
- `licell skills init
|
|
686
|
+
- `licell skills init`、`licell catalog`、`licell completion` 都基于同一套 CLI 命令目录生成外部表面。
|
|
666
687
|
- `licell completion` 的候选命令同样来自共享命令目录。
|
|
667
688
|
|
|
668
689
|
| 命令 | 说明 | 关键选项 |
|
|
669
690
|
|------|------|----------|
|
|
670
|
-
| `licell
|
|
671
|
-
| `licell
|
|
672
|
-
| `licell mcp serve` | 以 stdio 方式启动 licell MCP server | `--project-root` |
|
|
691
|
+
| `licell doctor` | 诊断本机 licell 登录态、云端权限/目标资源/域名入口、项目配置与部署前置条件 | `--runtime`, `--entry`, `--docker-daemon` |
|
|
692
|
+
| `licell catalog` | 输出共享 CLI 命令目录,供 Agent / 自动化发现命令、选项和结构化契约 | `--root-command`, `--command-key` |
|
|
673
693
|
| `licell skills init [agent]` | 为 AI Agent 生成 licell skills(claude / codex) | `--project-root`, `--force` |
|
|
674
|
-
| `licell setup` | 安装后引导:配置 AI Agent
|
|
694
|
+
| `licell setup` | 安装后引导:配置 AI Agent skills | `--agent`, `--global`, `--project-root` |
|
|
675
695
|
| `licell completion [shell]` | 输出 shell 补全脚本(bash/zsh) | `--engine` |
|
|
676
696
|
| `licell upgrade` | 按当前安装来源升级 licell | `--channel`, `--target-version`, `--repo` |
|
|
677
697
|
| `licell e2e cleanup [runId]` | 清理指定 E2E run 产生的资源 | `--manifest`, `--keep-workspace`, `--yes` |
|
|
@@ -680,6 +700,18 @@ licell e2e cleanup <runId>
|
|
|
680
700
|
|
|
681
701
|
### 常用工作流片段
|
|
682
702
|
|
|
703
|
+
**Task 函数工作流**
|
|
704
|
+
|
|
705
|
+
```bash
|
|
706
|
+
licell deploy --type task --runtime nodejs22 --entry src/task.ts --target preview --output json
|
|
707
|
+
licell task config <appName> --target preview --output json
|
|
708
|
+
licell task invoke <appName> --target preview --payload '{"job":"demo"}' --output json
|
|
709
|
+
licell task info <taskId> <appName> --target preview --output json
|
|
710
|
+
licell task list <appName> --target preview --status Running --output json
|
|
711
|
+
```
|
|
712
|
+
|
|
713
|
+
说明:`deploy --type task` 成功后不会返回固定 URL;请读取结果里的 `invokeCommand`,或继续执行 `licell task invoke` / `task info` / `task list` 完成任务闭环。
|
|
714
|
+
|
|
683
715
|
**Shell 补全(bash / zsh)**
|
|
684
716
|
|
|
685
717
|
```bash
|
|
@@ -705,7 +737,7 @@ licell e2e list
|
|
|
705
737
|
licell e2e cleanup <runId>
|
|
706
738
|
```
|
|
707
739
|
|
|
708
|
-
|
|
740
|
+
说明:默认 smoke 套件会覆盖 API deploy/invoke 与 task deploy/config/invoke/list/info/stop;`licell e2e run --suite full` 会在此基础上额外覆盖 DNS add/rm、OSS bucket/object CRUD、OSS 原生域名 token/bind/unbind、`domain app bind/unbind`、`deploy --type static --domain ...` 与 `domain static bind/unbind`。如需连同云上资源一起收口,建议配合 `--cleanup`。
|
|
709
741
|
|
|
710
742
|
**删除 / 清理说明**
|
|
711
743
|
|
|
@@ -730,7 +762,7 @@ licell deploy --type api --target preview
|
|
|
730
762
|
|
|
731
763
|
```bash
|
|
732
764
|
licell setup --agent codex --global
|
|
733
|
-
licell
|
|
765
|
+
licell catalog --output json
|
|
734
766
|
licell deploy spec nodejs22 --output json
|
|
735
767
|
licell deploy check --runtime nodejs22 --entry src/index.ts --output json
|
|
736
768
|
licell deploy --type api --runtime nodejs22 --entry src/index.ts --target preview --output json
|
|
@@ -763,4 +795,4 @@ licell e2e run --suite full --cleanup
|
|
|
763
795
|
- workflow 优先
|
|
764
796
|
- 原子命令兜底
|
|
765
797
|
- 命令自描述
|
|
766
|
-
-
|
|
798
|
+
- catalog / skills / docs 共源收敛
|