Skip to content

Commit 94c036e

Browse files
docs(cli): split install snippets into copyable blocks
1 parent 4243a7e commit 94c036e

1 file changed

Lines changed: 28 additions & 20 deletions

File tree

docs/cli/index.md

Lines changed: 28 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,34 @@ mp2rss mp subscribe https://mp.weixin.qq.com/s/xxxxxxxxxx
2929
mp2rss mp list
3030
```
3131

32+
## 安装速览
33+
34+
四种方式,按场景任选其一,详细步骤、环境变量覆盖与卸载指引见 [安装](./install)
35+
36+
**一键安装(推荐 macOS / Linux)**
37+
38+
```bash
39+
curl -fsSL https://raw.githubusercontent.com/areyoubugcoder/mp2rss-cli/main/scripts/install.sh | sh
40+
```
41+
42+
**npm 包装(Node ≥ 18)**
43+
44+
```bash
45+
pnpm add -g @mp2rss/cli
46+
```
47+
48+
**直接下载(GitHub Releases)**
49+
50+
```
51+
https://github.com/areyoubugcoder/mp2rss-cli/releases/latest
52+
```
53+
54+
**源码构建(Go ≥ 1.21)**
55+
56+
```bash
57+
git clone https://github.com/areyoubugcoder/mp2rss-cli.git && cd mp2rss-cli && make build
58+
```
59+
3260
## 使用场景演示
3361

3462
CLI 是纯文本接口、输出稳定,可直接被 AI Agent 封装为技能调用。下面是在 **Pi Coding Agent** 中通过自然语言驱动 `mp2rss` 的两个真实片段:
@@ -45,26 +73,6 @@ CLI 是纯文本接口、输出稳定,可直接被 AI Agent 封装为技能调
4573

4674
![在 Pi Coding Agent 中查看订阅列表](/agent-list.png)
4775

48-
## 安装速览
49-
50-
四种方式,按场景任选其一:
51-
52-
```bash
53-
# 一键安装(推荐 macOS / Linux)
54-
curl -fsSL https://raw.githubusercontent.com/areyoubugcoder/mp2rss-cli/main/scripts/install.sh | sh
55-
56-
# npm 包装(Node ≥ 18)
57-
pnpm add -g @mp2rss/cli
58-
59-
# 直接下载
60-
# https://github.com/areyoubugcoder/mp2rss-cli/releases/latest
61-
62-
# 源码构建(Go ≥ 1.21)
63-
git clone https://github.com/areyoubugcoder/mp2rss-cli.git && cd mp2rss-cli && make build
64-
```
65-
66-
详细步骤、环境变量覆盖与卸载指引见 [安装](./install)
67-
6876
## 下一步
6977

7078
- [安装](./install):本地构建步骤、平台兼容性。

0 commit comments

Comments
 (0)