@adep/cli 0.1.7 → 0.1.9

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 CHANGED
@@ -285,19 +285,25 @@ hello v1 https://my-app.platform.example.com/hello
285
285
 
286
286
  ### `adep projects`
287
287
 
288
- 项目子命令组:创建 / 列出 / 查看。子域地址由平台回显(`projectBaseUrl`),CLI 不自行拼域名。
288
+ 项目子命令组:创建 / 列出 / 查看 / 删除。子域地址由平台回显(`projectBaseUrl`),CLI 不自行拼域名。
289
289
 
290
290
  ```bash
291
291
  adep projects create game-arcade # → ✓ Project created · https://game-arcade.adep.top
292
292
  adep projects create game-arcade -n 游戏厅 # 展示名与 slug 分开
293
293
  adep projects list # slug \t name \t url
294
294
  adep projects info game-arcade # id \t slug \t name \t url
295
+ adep projects delete game-arcade --yes # → ✓ Project deleted · game-arcade
295
296
  ```
296
297
 
297
298
  - `--name` 缺省取 slug:一行命令即可建项目。
298
299
 
299
300
  - 目标 slug 已占用 → 平台返回 `PROJECT_SLUG_TAKEN`,CLI 原样透传并退出码 1。
300
301
 
302
+ - **`projects delete` 必须显式 `--yes`**:删除是**级联且不可撤销**的(云函数与草稿、前端代码、
303
+ 环境变量、触发器、Git 绑定、自定义域名、MCP 工具一并清空,市场共享下架,子域名立即下线)。
304
+ 缺 `--yes` 直接拒绝(`CONFIRM_REQUIRED`,退出码 1)且**不发任何请求**——不做 TTY 交互提问,
305
+ 因为确定性输出(含 `--json`)比一个可能被 CI 管道吞掉的提问更可靠。删除后 slug **不回收**。
306
+
301
307
  - 未登录 / 会话失效 → 打印错误后附带 `提示:先执行 adep login`。
302
308
 
303
309
  ### `adep functions`(deprecated)