From bd7d93b7181ad3597e7ff83ddd001999c0508cd7 Mon Sep 17 00:00:00 2001 From: zhenghaoz Date: Fri, 23 Oct 2026 21:53:48 +0800 Subject: [PATCH 1/2] docs: follow standalone Gorse CLI repository --- functions/install.ps1.js | 2 +- functions/install.sh.js | 2 +- src/docs/gorse-cli.md | 16 +++++++++++++++- src/zh/docs/gorse-cli.md | 16 +++++++++++++++- 4 files changed, 32 insertions(+), 4 deletions(-) diff --git a/functions/install.ps1.js b/functions/install.ps1.js index de13c13..219b3dc 100644 --- a/functions/install.ps1.js +++ b/functions/install.ps1.js @@ -1,5 +1,5 @@ const INSTALL_SCRIPT_URL = - "https://raw.githubusercontent.com/gorse-io/gorse/master/cmd/gorse-cli/install.ps1"; + "https://raw.githubusercontent.com/gorse-io/cli/main/install.ps1"; const SCRIPT_HEADERS = { "Content-Type": "text/plain; charset=utf-8", diff --git a/functions/install.sh.js b/functions/install.sh.js index faafef0..97e9820 100644 --- a/functions/install.sh.js +++ b/functions/install.sh.js @@ -1,5 +1,5 @@ const INSTALL_SCRIPT_URL = - "https://raw.githubusercontent.com/gorse-io/gorse/master/cmd/gorse-cli/install.sh"; + "https://raw.githubusercontent.com/gorse-io/cli/main/install.sh"; const SCRIPT_HEADERS = { "Content-Type": "text/x-shellscript; charset=utf-8", diff --git a/src/docs/gorse-cli.md b/src/docs/gorse-cli.md index 4317289..a5a6856 100644 --- a/src/docs/gorse-cli.md +++ b/src/docs/gorse-cli.md @@ -6,6 +6,8 @@ icon: terminal `gorse-cli` is a command line tool for managing Gorse clusters. It provides terminal access to common dashboard and administration operations, including cluster status, task progress, data inspection, recommendation preview, recommendation pipeline configuration, and backup or restore operations. +The source code and releases are maintained in the standalone [gorse-io/cli](https://github.com/gorse-io/cli) repository. + ## Installation ::: code-tabs#install @@ -38,7 +40,19 @@ scoop install gorse-cli ::: -The Bash install script supports Linux on AMD64, ARM64, and RISCV64, and macOS on ARM64. The PowerShell install script supports Windows on AMD64 and ARM64. You can also install `gorse-cli` with [Homebrew](https://brew.sh/) or [Scoop](https://scoop.sh/). +The Bash install script supports Linux on AMD64, ARM64, LOONG64, and RISCV64, and macOS on ARM64. The PowerShell install script supports Windows on AMD64 and ARM64. You can also install `gorse-cli` with [Homebrew](https://brew.sh/) or [Scoop](https://scoop.sh/). + +### Build from source + +With the Go version required by the repository's `go.mod` installed: + +```bash +git clone https://github.com/gorse-io/cli.git +cd cli +go build -o gorse-cli ./cmd/gorse-cli +``` + +On Windows, use `go build -o gorse-cli.exe ./cmd/gorse-cli` instead. Add the binary to your `PATH` to use it from any directory. ## Authentication diff --git a/src/zh/docs/gorse-cli.md b/src/zh/docs/gorse-cli.md index 6f85e7d..af240d6 100644 --- a/src/zh/docs/gorse-cli.md +++ b/src/zh/docs/gorse-cli.md @@ -6,6 +6,8 @@ icon: terminal `gorse-cli` 是用于管理 Gorse 集群的命令行工具。它把常见的控制台和运维操作集成到终端中,包括查看集群状态、任务进度、用户和物品数据、推荐结果、推荐流程配置,以及数据备份和恢复。 +源代码和版本发布由独立仓库 [gorse-io/cli](https://github.com/gorse-io/cli) 维护。 + ## 安装 ::: code-tabs#install @@ -38,7 +40,19 @@ scoop install gorse-cli ::: -Bash 安装脚本支持 AMD64、ARM64、RISCV64 架构的 Linux,以及 ARM64 架构的 macOS。PowerShell 安装脚本支持 AMD64 和 ARM64 架构的 Windows。也可以使用 [Homebrew](https://brew.sh/) 或 [Scoop](https://scoop.sh/) 安装 `gorse-cli`。 +Bash 安装脚本支持 AMD64、ARM64、LOONG64、RISCV64 架构的 Linux,以及 ARM64 架构的 macOS。PowerShell 安装脚本支持 AMD64 和 ARM64 架构的 Windows。也可以使用 [Homebrew](https://brew.sh/) 或 [Scoop](https://scoop.sh/) 安装 `gorse-cli`。 + +### 从源码构建 + +安装仓库 `go.mod` 要求的 Go 版本后,执行: + +```bash +git clone https://github.com/gorse-io/cli.git +cd cli +go build -o gorse-cli ./cmd/gorse-cli +``` + +Windows 下改用 `go build -o gorse-cli.exe ./cmd/gorse-cli`。将生成的可执行文件加入 `PATH` 后,即可在任意目录使用。 ## 认证 From 60026a788ee8b686baf5e9b3faebc54f7a2dff2d Mon Sep 17 00:00:00 2001 From: zhenghaoz Date: Fri, 23 Oct 2026 21:57:14 +0800 Subject: [PATCH 2/2] docs: revert CLI page changes --- src/docs/gorse-cli.md | 16 +--------------- src/zh/docs/gorse-cli.md | 16 +--------------- 2 files changed, 2 insertions(+), 30 deletions(-) diff --git a/src/docs/gorse-cli.md b/src/docs/gorse-cli.md index a5a6856..4317289 100644 --- a/src/docs/gorse-cli.md +++ b/src/docs/gorse-cli.md @@ -6,8 +6,6 @@ icon: terminal `gorse-cli` is a command line tool for managing Gorse clusters. It provides terminal access to common dashboard and administration operations, including cluster status, task progress, data inspection, recommendation preview, recommendation pipeline configuration, and backup or restore operations. -The source code and releases are maintained in the standalone [gorse-io/cli](https://github.com/gorse-io/cli) repository. - ## Installation ::: code-tabs#install @@ -40,19 +38,7 @@ scoop install gorse-cli ::: -The Bash install script supports Linux on AMD64, ARM64, LOONG64, and RISCV64, and macOS on ARM64. The PowerShell install script supports Windows on AMD64 and ARM64. You can also install `gorse-cli` with [Homebrew](https://brew.sh/) or [Scoop](https://scoop.sh/). - -### Build from source - -With the Go version required by the repository's `go.mod` installed: - -```bash -git clone https://github.com/gorse-io/cli.git -cd cli -go build -o gorse-cli ./cmd/gorse-cli -``` - -On Windows, use `go build -o gorse-cli.exe ./cmd/gorse-cli` instead. Add the binary to your `PATH` to use it from any directory. +The Bash install script supports Linux on AMD64, ARM64, and RISCV64, and macOS on ARM64. The PowerShell install script supports Windows on AMD64 and ARM64. You can also install `gorse-cli` with [Homebrew](https://brew.sh/) or [Scoop](https://scoop.sh/). ## Authentication diff --git a/src/zh/docs/gorse-cli.md b/src/zh/docs/gorse-cli.md index af240d6..6f85e7d 100644 --- a/src/zh/docs/gorse-cli.md +++ b/src/zh/docs/gorse-cli.md @@ -6,8 +6,6 @@ icon: terminal `gorse-cli` 是用于管理 Gorse 集群的命令行工具。它把常见的控制台和运维操作集成到终端中,包括查看集群状态、任务进度、用户和物品数据、推荐结果、推荐流程配置,以及数据备份和恢复。 -源代码和版本发布由独立仓库 [gorse-io/cli](https://github.com/gorse-io/cli) 维护。 - ## 安装 ::: code-tabs#install @@ -40,19 +38,7 @@ scoop install gorse-cli ::: -Bash 安装脚本支持 AMD64、ARM64、LOONG64、RISCV64 架构的 Linux,以及 ARM64 架构的 macOS。PowerShell 安装脚本支持 AMD64 和 ARM64 架构的 Windows。也可以使用 [Homebrew](https://brew.sh/) 或 [Scoop](https://scoop.sh/) 安装 `gorse-cli`。 - -### 从源码构建 - -安装仓库 `go.mod` 要求的 Go 版本后,执行: - -```bash -git clone https://github.com/gorse-io/cli.git -cd cli -go build -o gorse-cli ./cmd/gorse-cli -``` - -Windows 下改用 `go build -o gorse-cli.exe ./cmd/gorse-cli`。将生成的可执行文件加入 `PATH` 后,即可在任意目录使用。 +Bash 安装脚本支持 AMD64、ARM64、RISCV64 架构的 Linux,以及 ARM64 架构的 macOS。PowerShell 安装脚本支持 AMD64 和 ARM64 架构的 Windows。也可以使用 [Homebrew](https://brew.sh/) 或 [Scoop](https://scoop.sh/) 安装 `gorse-cli`。 ## 认证