Skip to content

Commit 1111cae

Browse files
authored
docs(cli): use CDN download links (#82)
1 parent f8b73d0 commit 1111cae

6 files changed

Lines changed: 16 additions & 16 deletions

File tree

en/developer/cli.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,22 @@ The tool is open source at [flashcatcloud/flashduty-cli](https://github.com/flas
1515
<Tabs>
1616
<Tab title="macOS / Linux">
1717
```bash
18-
curl -sSL https://raw.githubusercontent.com/flashcatcloud/flashduty-cli/main/install.sh | sh
18+
curl -sSL https://static.flashcat.cloud/flashduty-cli/install.sh | sh
1919
```
2020

2121
Installs to `/usr/local/bin` by default. Override with the `FLASHDUTY_INSTALL_DIR` environment variable.
2222
</Tab>
2323

2424
<Tab title="Windows (PowerShell)">
2525
```powershell
26-
irm https://raw.githubusercontent.com/flashcatcloud/flashduty-cli/main/install.ps1 | iex
26+
irm https://static.flashcat.cloud/flashduty-cli/install.ps1 | iex
2727
```
2828

2929
Installs to `~\.flashduty\bin` by default. Override with the `FLASHDUTY_INSTALL_DIR` environment variable.
3030
</Tab>
3131

3232
<Tab title="Manual download">
33-
Grab the binary for your platform from [GitHub Releases](https://github.com/flashcatcloud/flashduty-cli/releases), extract it, and place it on your `PATH`.
33+
Read the latest version from the [CDN latest version pointer](https://static.flashcat.cloud/flashduty-cli/releases/latest), then download the matching asset from `https://static.flashcat.cloud/flashduty-cli/releases/download/<version>/<asset>`, extract it, and place it on your `PATH`.
3434
</Tab>
3535
</Tabs>
3636

@@ -378,5 +378,5 @@ Run this in CI to catch syntax or field errors as soon as a template is committe
378378
</AccordionGroup>
379379

380380
<Tip>
381-
Full source, releases, and issue tracking live on the [GitHub repository](https://github.com/flashcatcloud/flashduty-cli).
381+
Full source and issue tracking live on the [GitHub repository](https://github.com/flashcatcloud/flashduty-cli).
382382
</Tip>

en/developer/overview.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Flashduty CLI (`flashduty`) is a command-line tool for managing the incident lif
4949
Install with one command:
5050

5151
```bash
52-
curl -sSL https://raw.githubusercontent.com/flashcatcloud/flashduty-cli/main/install.sh | sh
52+
curl -sSL https://static.flashcat.cloud/flashduty-cli/install.sh | sh
5353
```
5454

5555
<Tip>

en/on-call/statuspage/get-started.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,16 +73,16 @@ If you use an AI coding agent such as Codex, Claude Code, or Cursor, you can fir
7373
<Tabs>
7474
<Tab title="macOS / Linux">
7575
```bash
76-
curl -sSL https://raw.githubusercontent.com/flashcatcloud/flashduty-cli/main/install.sh | sh
76+
curl -sSL https://static.flashcat.cloud/flashduty-cli/install.sh | sh
7777
```
7878
</Tab>
7979
<Tab title="Windows (PowerShell)">
8080
```powershell
81-
irm https://raw.githubusercontent.com/flashcatcloud/flashduty-cli/main/install.ps1 | iex
81+
irm https://static.flashcat.cloud/flashduty-cli/install.ps1 | iex
8282
```
8383
</Tab>
8484
<Tab title="Manual download">
85-
Download the latest release for your platform from [GitHub Releases](https://github.com/flashcatcloud/flashduty-cli/releases), extract it, and place the binary in your `PATH`.
85+
Read the latest version from the [CDN latest version pointer](https://static.flashcat.cloud/flashduty-cli/releases/latest), then download the matching asset from `https://static.flashcat.cloud/flashduty-cli/releases/download/<version>/<asset>`, extract it, and place the binary in your `PATH`.
8686
</Tab>
8787
</Tabs>
8888

zh/developer/cli.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,22 @@ Flashduty CLI(`flashduty`)是一款命令行工具,可在终端中完成
1515
<Tabs>
1616
<Tab title="macOS / Linux">
1717
```bash
18-
curl -sSL https://raw.githubusercontent.com/flashcatcloud/flashduty-cli/main/install.sh | sh
18+
curl -sSL https://static.flashcat.cloud/flashduty-cli/install.sh | sh
1919
```
2020

2121
默认安装到 `/usr/local/bin`,可通过环境变量 `FLASHDUTY_INSTALL_DIR` 自定义。
2222
</Tab>
2323

2424
<Tab title="Windows (PowerShell)">
2525
```powershell
26-
irm https://raw.githubusercontent.com/flashcatcloud/flashduty-cli/main/install.ps1 | iex
26+
irm https://static.flashcat.cloud/flashduty-cli/install.ps1 | iex
2727
```
2828

2929
默认安装到 `~\.flashduty\bin`,可通过环境变量 `FLASHDUTY_INSTALL_DIR` 自定义。
3030
</Tab>
3131

3232
<Tab title="手动下载">
33-
访问 [GitHub Releases](https://github.com/flashcatcloud/flashduty-cli/releases) 下载对应平台的二进制包,解压后放入 `PATH` 即可。
33+
访问 [CDN 最新版本指针](https://static.flashcat.cloud/flashduty-cli/releases/latest) 获取最新版本号,然后从 `https://static.flashcat.cloud/flashduty-cli/releases/download/<version>/<asset>` 下载对应平台的二进制包,解压后放入 `PATH` 即可。
3434
</Tab>
3535
</Tabs>
3636

@@ -378,5 +378,5 @@ flashduty template validate --channel feishu --file templates/feishu.yaml
378378
</AccordionGroup>
379379

380380
<Tip>
381-
完整源码、Release 列表和问题反馈请访问 [GitHub 仓库](https://github.com/flashcatcloud/flashduty-cli)
381+
完整源码和问题反馈请访问 [GitHub 仓库](https://github.com/flashcatcloud/flashduty-cli)
382382
</Tip>

zh/developer/overview.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Flashduty CLI(`flashduty`)是一款命令行工具,可在终端中完成
4949
一行命令安装:
5050

5151
```bash
52-
curl -sSL https://raw.githubusercontent.com/flashcatcloud/flashduty-cli/main/install.sh | sh
52+
curl -sSL https://static.flashcat.cloud/flashduty-cli/install.sh | sh
5353
```
5454

5555
<Tip>

zh/on-call/statuspage/get-started.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,16 +73,16 @@ keywords: ["状态页接入", "状态页入门", "Atlassian Statuspage 迁移",
7373
<Tabs>
7474
<Tab title="macOS / Linux">
7575
```bash
76-
curl -sSL https://raw.githubusercontent.com/flashcatcloud/flashduty-cli/main/install.sh | sh
76+
curl -sSL https://static.flashcat.cloud/flashduty-cli/install.sh | sh
7777
```
7878
</Tab>
7979
<Tab title="Windows (PowerShell)">
8080
```powershell
81-
irm https://raw.githubusercontent.com/flashcatcloud/flashduty-cli/main/install.ps1 | iex
81+
irm https://static.flashcat.cloud/flashduty-cli/install.ps1 | iex
8282
```
8383
</Tab>
8484
<Tab title="手动下载">
85-
访问 [GitHub Releases](https://github.com/flashcatcloud/flashduty-cli/releases) 下载对应平台的二进制包,解压后放入 `PATH` 即可。
85+
访问 [CDN 最新版本指针](https://static.flashcat.cloud/flashduty-cli/releases/latest) 获取最新版本号,然后从 `https://static.flashcat.cloud/flashduty-cli/releases/download/<version>/<asset>` 下载对应平台的二进制包,解压后放入 `PATH` 即可。
8686
</Tab>
8787
</Tabs>
8888

0 commit comments

Comments
 (0)