From 6bf0c542a185a90d1cea98fc0ed4d5a3c20784c6 Mon Sep 17 00:00:00 2001 From: lunrenyi <87307989+lunrenyi@users.noreply.github.com> Date: Mon, 30 Mar 2026 22:05:46 +0800 Subject: [PATCH] docs: add x-cmd and nix installation options (#2306) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 安正超 Co-authored-by: houseme --- README.md | 13 +++++++++++++ README_ZH.md | 30 ++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) diff --git a/README.md b/README.md index e62aab834..6f08f5cd0 100644 --- a/README.md +++ b/README.md @@ -195,6 +195,19 @@ nix build nix run ``` +### 6\. X-CMD (Option 6) + +If you are an [x-cmd](https://www.x-cmd.com/install/rustfs) user: + +```bash +# Run directly without installing +x rustfs + +# Download the binary and install it to the global environment +x env use rustfs +rustfs --help +``` + --- ### Accessing RustFS diff --git a/README_ZH.md b/README_ZH.md index 650ae0841..360b69dd2 100644 --- a/README_ZH.md +++ b/README_ZH.md @@ -163,6 +163,36 @@ make help-docker # 显示所有 Docker 相关命令 请按照 [Helm Chart README](https://charts.rustfs.com) 上的说明在 Kubernetes 集群上安装 RustFS。 +### 5\. Nix Flake (Option 5) + +如果你已经 启用了 [Nix Flakes 功能](https://nixos.wiki/wiki/Flakes#Enable_flakes): + +```bash +# 直接运行,无需安装 +nix run github:rustfs/rustfs + +# 编译二进制文件 +nix build github:rustfs/rustfs +./result/bin/rustfs --help + +# 或者从本地检出的代码库运行/编译 +nix build +nix run +``` + +### 6\. X-CMD (Option 6) + +如果你是 [x-cmd](https://www.x-cmd.com/install/rustfs) 用户: + +```bash +# 直接运行,无需安装 +x rustfs + +# 下载二进制文件并安装到全局环境中 +x env use rustfs +rustfs --help +``` + --- ### 访问 RustFS