Installation
Shield CLI supports multiple installation methods. Choose the one that fits your operating system.
macOS
Homebrew (Recommended)
brew tap fengyily/tap
brew install shield-cliOne-Liner
curl -fsSL https://raw.githubusercontent.com/fengyily/shield-cli/main/install.sh | shWindows
One-Click Installer (Recommended for beginners)
Download install.bat and double-click to run. It will automatically:
- Detect your system architecture (AMD64 / ARM64)
- Download the correct version
- Install as a system service (auto-start on boot)
- Open the Web UI in your browser
A UAC permission prompt will appear — click "Yes" to continue.
Scoop
scoop bucket add shield https://github.com/fengyily/scoop-bucket
scoop install shield-cliPowerShell One-Liner
irm https://raw.githubusercontent.com/fengyily/shield-cli/main/install.ps1 | iexLinux
One-Liner (Recommended)
Automatically detects apt / yum / dnf, adds the repository, and installs:
curl -fsSL https://raw.githubusercontent.com/fengyily/shield-cli/main/scripts/setup-repo.sh | sudo bashOnce installed, future updates are available via apt upgrade or yum update.
APT (Debian / Ubuntu)
Manually add the repository:
echo "deb [trusted=yes] https://fengyily.github.io/linux-repo/apt stable main" \
| sudo tee /etc/apt/sources.list.d/shield-cli.list
sudo apt update
sudo apt install shield-cliYUM / DNF (RHEL / CentOS / Fedora)
sudo tee /etc/yum.repos.d/shield-cli.repo <<EOF
[shield-cli]
name=Shield CLI Repository
baseurl=https://fengyily.github.io/linux-repo/yum
enabled=1
gpgcheck=0
EOF
sudo yum install shield-cli # or: dnf install shield-cliBinary Install
curl -fsSL https://raw.githubusercontent.com/fengyily/shield-cli/main/install.sh | shManual deb / rpm Install
Download packages from GitHub Releases:
# Debian / Ubuntu
sudo dpkg -i shield-cli_<version>_amd64.deb
# RHEL / CentOS
sudo rpm -i shield-cli_<version>_amd64.rpmChina Mirror
If GitHub is slow in your region, use the jsDelivr CDN mirror:
curl -fsSL https://cdn.jsdelivr.net/gh/fengyily/shield-cli@main/install.sh | shDocker
# Use the prebuilt image (recommended)
docker run -d --name shield \
--network host \
--restart unless-stopped \
fengyily/shield-cli
# Or build from source
docker build -t shield-cli https://github.com/fengyily/shield-cli.git
docker run -d --name shield --network host --restart unless-stopped shield-cli--network host shares the host's network stack so Shield CLI can reach local and LAN services. Open http://localhost:8181 after startup.
Note:
--network hostonly works on Linux. On macOS / Windows Docker Desktop, use port mapping instead:bashdocker run -d --name shield -p 8181:8181 --restart unless-stopped fengyily/shield-cli
Build from Source
git clone https://github.com/fengyily/shield-cli.git
cd shield-cli
go build -o shield .Requires Go 1.25.0 or later.
Verify Installation
shield --versionIf you see a version number, the installation was successful.
Supported Platforms
| OS | Architectures |
|---|---|
| macOS | amd64, arm64 (Apple Silicon) |
| Linux | amd64, arm64, 386, armv7 |
| Windows | amd64, arm64, 386 |