mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-10-12 02:16:39 +00:00
2.1 KiB
2.1 KiB
RAGFlow CLI Installation Scripts
RAGFlow publishes static Go CLI binaries as GitHub Release assets for:
- Linux:
amd64,arm64 - macOS:
amd64,arm64 - Windows:
amd64,arm64
The release workflow builds the binaries with CGO_ENABLED=0, uploads SHA256SUMS, and uploads install.sh and install.ps1.
Linux And macOS
Use the script maintained in the RAGFlow repository:
curl -fsSL https://raw.githubusercontent.com/infiniflow/ragflow/main/tools/scripts/install.sh | sh
Install a specific version:
curl -fsSL https://raw.githubusercontent.com/infiniflow/ragflow/main/tools/scripts/install.sh | VERSION=v1.0.0 sh
Install to a user-writable directory:
curl -fsSL https://raw.githubusercontent.com/infiniflow/ragflow/main/tools/scripts/install.sh | INSTALL_DIR="$HOME/.local/bin" sh
The Unix installer:
- detects
linuxordarwin - detects
amd64orarm64 - downloads
ragflow-cli-{VERSION}-{OS}-{ARCH} - verifies the file with the release
SHA256SUMS - installs to
/usr/local/binby default
Windows PowerShell
Run the repository script in PowerShell:
irm https://raw.githubusercontent.com/infiniflow/ragflow/main/tools/scripts/install.ps1 | iex
Install a specific version:
.\install.ps1 -Version "v1.0.0"
Install to a custom directory:
.\install.ps1 -InstallDir "$env:USERPROFILE\bin"
The Windows installer:
- detects
windows/amd64orwindows/arm64 - downloads
ragflow-cli-{VERSION}-windows-{ARCH}.exe - verifies the file with the release
SHA256SUMS - installs to
$env:LOCALAPPDATA\Programs\RAGFlowby default - adds the install directory to the user
PATH
Release Asset Names
The install scripts expect these names:
ragflow-cli-v1.0.0-linux-amd64
ragflow-cli-v1.0.0-linux-arm64
ragflow-cli-v1.0.0-darwin-amd64
ragflow-cli-v1.0.0-darwin-arm64
ragflow-cli-v1.0.0-windows-amd64.exe
ragflow-cli-v1.0.0-windows-arm64.exe
SHA256SUMS
install.sh
install.ps1
By default, both scripts install the latest stable GitHub Release. Set
VERSION on Unix or -Version on Windows to pin a specific release.