@cnbcool/cnb-cli 1.4.1 → 1.4.3

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.
Files changed (3) hide show
  1. package/README.md +45 -1
  2. package/dist/index.js +67 -37
  3. package/package.json +6 -5
package/README.md CHANGED
@@ -26,7 +26,51 @@ npx skills add https://cnb.cool/cnb/skills/cnb-skill.git --skill cnb-api --skill
26
26
 
27
27
  ### 安装 cnb-cli
28
28
 
29
- 使用 cnb-skills 还需安装 cnb-cli
29
+ 使用 cnb-skills 还需安装 cnb-cli,支持以下安装方式:
30
+
31
+ #### 方式一:一键安装脚本(推荐)
32
+
33
+ 自动检测操作系统和 CPU 架构,下载对应的二进制文件:
34
+
35
+ **Linux / macOS**:
36
+
37
+ ```bash
38
+ curl -fsSL https://cnb.cool/cnb/skills/cnb-skill/-/git/raw/main/install.sh | sh
39
+ ```
40
+
41
+ 安装指定版本:
42
+
43
+ ```bash
44
+ curl -fsSL https://cnb.cool/cnb/skills/cnb-skill/-/git/raw/main/install.sh | sh -s 1.4.3
45
+ ```
46
+
47
+ **Windows(PowerShell)**:
48
+
49
+ ```powershell
50
+ irm https://cnb.cool/cnb/skills/cnb-skill/-/git/raw/main/install.ps1 | iex
51
+ ```
52
+
53
+ 安装指定版本:
54
+
55
+ ```powershell
56
+ $v="1.4.3"; irm https://cnb.cool/cnb/skills/cnb-skill/-/git/raw/main/install.ps1 | iex
57
+ ```
58
+
59
+ #### 方式二:手动下载
60
+
61
+ 前往 [Releases](https://cnb.cool/cnb/skills/cnb-skill/-/releases) 页面,下载最新版本中对应平台的文件:
62
+
63
+ | 平台 | 文件名 |
64
+ |------|--------|
65
+ | macOS (Apple Silicon) | `cnb-darwin-arm64` |
66
+ | macOS (Intel) | `cnb-darwin-x64` |
67
+ | Linux (x64) | `cnb-linux-x64` |
68
+ | Linux (ARM64) | `cnb-linux-arm64` |
69
+ | Windows (x64) | `cnb-windows-x64.exe` |
70
+
71
+ 下载后将文件重命名为 `cnb`(Windows 为 `cnb.exe`),放入 PATH 目录中即可使用。
72
+
73
+ #### 方式三:npm 安装
30
74
 
31
75
  ```bash
32
76
  # 运行环境要求 Node.js 20.x 及以上版本