@yoooclaw/cli 0.0.5 → 0.0.7

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
@@ -9,23 +9,39 @@ yoooclaw 独立 CLI 工具 —— 自带后台守护进程(daemon),不依
9
9
 
10
10
  ## 安装与命令
11
11
 
12
- 免安装(npx,每次拉取最新版):
12
+ 两种分发渠道,二者**功能一致**,按需选择:
13
+
14
+ ### A. npm(需要 Node ≥ 22.12.0)
13
15
 
14
16
  ```bash
15
- npx @yoooclaw/cli --help # 主命令
17
+ # 免安装(每次拉最新版)
18
+ npx @yoooclaw/cli --help
16
19
  npx @yoooclaw/cli notification +today
20
+
21
+ # 全局安装(提供 yoooclaw / yc 两个命令)
22
+ npm i -g @yoooclaw/cli
23
+ yoooclaw --help
24
+ yc --help
17
25
  ```
18
26
 
19
- 全局安装(提供 `yoooclaw` / `yc` 两个命令):
27
+ ### B. 原生二进制(无需 Node)
28
+
29
+ 单文件可执行(内嵌 Bun runtime),首次安装 ~60–90 MB,冷启动与 Node 相当。
20
30
 
21
31
  ```bash
22
- npm i -g @yoooclaw/cli
23
- yoooclaw --help # 主命令
24
- yc --help # 等价短 alias
32
+ # 自动检测平台、下载、校验 sha256、写到 ~/.local/bin
33
+ curl -fsSL https://raw.githubusercontent.com/Yoooclaw/openclaw-plugin/master/packages/cli/scripts/install.sh | sh
34
+
35
+ # 指定版本 / 安装目录 / 覆盖
36
+ curl -fsSL https://raw.githubusercontent.com/Yoooclaw/openclaw-plugin/master/packages/cli/scripts/install.sh \
37
+ | sh -s -- --version 0.0.5 --dir ~/bin --force
25
38
  ```
26
39
 
27
- > `npx @yoooclaw/cli` 始终调用 `yoooclaw` 入口(`yoooclaw` `yc` 指向同一可执行文件,npx 不会歧义)。
28
- > 需要 Node `>=22.12.0`。
40
+ 支持平台:`darwin-arm64` / `darwin-x64` / `linux-x64` / `linux-arm64`。Windows 暂走 npm。
41
+
42
+ 二进制也可以从 [GitHub Releases](https://github.com/Yoooclaw/openclaw-plugin/releases?q=cli-v) 手动下载(同 release 内 `checksums.txt` 校验)。
43
+
44
+ > `yoooclaw update self` 会按当前安装来源给出对应升级命令(npm 走 `npm update -g`,二进制走 install.sh)。
29
45
 
30
46
  ## 命令体系
31
47