快速安装
推荐 - 自动安装并支持版本管理
bash
# Linux / macOS
curl -fsSL https://www.rediacc.com/install.sh | bashpowershell
# Windows (PowerShell)
irm https://www.rediacc.com/install.ps1 | iex直接下载
独立二进制文件,无需包管理器
bash
# Linux x64
curl -fsSL https://github.com/rediacc/console/releases/latest/download/rdc-linux-x64 -o rdc
chmod +x rdc && sudo mv rdc /usr/local/bin/
# Linux ARM64
curl -fsSL https://github.com/rediacc/console/releases/latest/download/rdc-linux-arm64 -o rdc
chmod +x rdc && sudo mv rdc /usr/local/bin/
# macOS (Apple Silicon)
curl -fsSL https://github.com/rediacc/console/releases/latest/download/rdc-mac-arm64 -o rdc
chmod +x rdc && sudo mv rdc /usr/local/bin/
# macOS (Intel)
curl -fsSL https://github.com/rediacc/console/releases/latest/download/rdc-mac-x64 -o rdc
chmod +x rdc && sudo mv rdc /usr/local/bin/
# Windows x64 (PowerShell) - installs to standard location
$installDir = "$env:LOCALAPPDATA\rediacc\bin"; New-Item -ItemType Directory -Force -Path $installDir | Out-Null
Invoke-WebRequest -Uri https://github.com/rediacc/console/releases/latest/download/rdc-win-x64.exe -OutFile "$installDir\rdc.exe"
# Add to PATH: [Environment]::SetEnvironmentVariable("PATH", $env:PATH + ";$installDir", "User")
# Windows ARM64 (PowerShell) - installs to standard location
$installDir = "$env:LOCALAPPDATA\rediacc\bin"; New-Item -ItemType Directory -Force -Path $installDir | Out-Null
Invoke-WebRequest -Uri https://github.com/rediacc/console/releases/latest/download/rdc-win-arm64.exe -OutFile "$installDir\rdc.exe"
# Add to PATH: [Environment]::SetEnvironmentVariable("PATH", $env:PATH + ";$installDir", "User")Docker
适用于容器环境
bash
# Pull the image
docker pull ghcr.io/rediacc/elite/cli:latest
# Run a command
docker run --rm ghcr.io/rediacc/elite/cli:latest --version
# Create an alias for convenience
alias rdc='docker run --rm -it -v $(pwd):/workspace ghcr.io/rediacc/elite/cli:latest'APT (Debian / Ubuntu)
适用于Debian、Ubuntu及其衍生版
bash
curl -fsSL https://www.rediacc.com/apt/gpg.key | sudo gpg --dearmor -o /usr/share/keyrings/rediacc.gpg
echo "deb [signed-by=/usr/share/keyrings/rediacc.gpg] https://www.rediacc.com/apt stable main" | sudo tee /etc/apt/sources.list.d/rediacc.list
sudo apt-get update && sudo apt-get install rediacc-cliDNF (Fedora / RHEL)
适用于Fedora、RHEL、CentOS、Rocky Linux
bash
sudo curl -fsSL https://www.rediacc.com/rpm/rediacc.repo -o /etc/yum.repos.d/rediacc.repo
sudo dnf install rediacc-cliHomebrew (macOS / Linux)
适用于使用 Homebrew 的 macOS 和 Linux 用户
bash
brew install rediacc/tap/rediacc-cli验证安装
bash
rdc --version 支持的架构
| 方法 | 平台 | x86_64 / amd64 | ARM64 / aarch64 |
|---|---|---|---|
| 快速安装 | Linux | ✓ | ✓ |
| macOS | ✓ | ✓ | |
| Windows | ✓ | ✓ | |
| 直接下载 | Linux | ✓ | ✓ |
| macOS | ✓ | ✓ | |
| Windows | ✓ | ✓ | |
| APT (.deb) | Linux | ✓ | ✓ |
| DNF (.rpm) | Linux | ✓ | ✓ |
| Homebrew | macOS / Linux | ✓ | ✓ |
| Docker | Linux / macOS / Windows | ✓ | ✓ |