@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 +24 -8
- package/dist/bin.cjs +5911 -5695
- package/dist/bin.cjs.map +44 -43
- package/dist/errors.d.ts +10 -0
- package/dist/index.cjs +5911 -5695
- package/dist/index.cjs.map +44 -43
- package/dist/version.d.ts +2 -0
- package/package.json +5 -1
package/README.md
CHANGED
|
@@ -9,23 +9,39 @@ yoooclaw 独立 CLI 工具 —— 自带后台守护进程(daemon),不依
|
|
|
9
9
|
|
|
10
10
|
## 安装与命令
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
两种分发渠道,二者**功能一致**,按需选择:
|
|
13
|
+
|
|
14
|
+
### A. npm(需要 Node ≥ 22.12.0)
|
|
13
15
|
|
|
14
16
|
```bash
|
|
15
|
-
|
|
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
|
-
|
|
27
|
+
### B. 原生二进制(无需 Node)
|
|
28
|
+
|
|
29
|
+
单文件可执行(内嵌 Bun runtime),首次安装 ~60–90 MB,冷启动与 Node 相当。
|
|
20
30
|
|
|
21
31
|
```bash
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
-
|
|
28
|
-
|
|
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
|
|