From ccbf4a0bd6b7d15f992f5fe63df70fea9f1ef160 Mon Sep 17 00:00:00 2001 From: schumilin Date: Sat, 28 Mar 2026 11:41:25 +0800 Subject: [PATCH] docs: clarify install methods as alternatives and add source build steps Closes larksuite/cli#2 Co-Authored-By: Claude Opus 4.6 (1M context) --- README.md | 10 ++++++++-- README.zh.md | 10 ++++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d431d69b2..ed2209d10 100644 --- a/README.md +++ b/README.md @@ -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 ``` diff --git a/README.zh.md b/README.zh.md index 52a78c3be..811cf2949 100644 --- a/README.zh.md +++ b/README.zh.md @@ -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 ```