docs: clarify install methods as alternatives and add source build steps

Closes larksuite/cli#2

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
schumilin
2026-03-28 11:41:25 +08:00
parent 83dfb068ad
commit ccbf4a0bd6
2 changed files with 16 additions and 4 deletions

View File

@@ -50,15 +50,21 @@ Before you start, make sure you have:
#### Install CLI
**From npm (recommended):**
Choose **one** of the following methods:
**Option 1 — From npm (recommended):**
```bash
npm install -g @larksuite/cli
```
**From source:**
**Option 2 — From source:**
Requires Go `v1.23`+ and Python 3.
```bash
git clone https://github.com/larksuite/cli.git
cd cli
make install
```

View File

@@ -50,15 +50,21 @@
#### 安装 CLI
**从 npm 安装(推荐):**
以下两种方式**任选其一**
**方式一 — 从 npm 安装(推荐):**
```bash
npm install -g @larksuite/cli
```
**从源码安装:**
**方式二 — 从源码安装:**
需要 Go `v1.23`+ 和 Python 3。
```bash
git clone https://github.com/larksuite/cli.git
cd cli
make install
```