Installation
Shield CLI supports multiple installation methods. Choose the one that fits your operating system.
macOS
Homebrew (Recommended)
bash
brew tap fengyily/tap
brew install shield-cliOne-Liner
bash
curl -fsSL https://raw.githubusercontent.com/fengyily/shield-cli/main/install.sh | shWindows
Scoop (Recommended)
powershell
scoop bucket add shield https://github.com/fengyily/scoop-bucket
scoop install shield-cliPowerShell One-Liner
powershell
irm https://raw.githubusercontent.com/fengyily/shield-cli/main/install.ps1 | iexLinux
One-Liner
bash
curl -fsSL https://raw.githubusercontent.com/fengyily/shield-cli/main/install.sh | shDebian / Ubuntu
bash
sudo dpkg -i shield-cli_<version>_linux_amd64.debRHEL / CentOS
bash
sudo rpm -i shield-cli_<version>_linux_amd64.rpmDownload packages from GitHub Releases.
China Mirror
If GitHub is slow in your region, use the jsDelivr CDN mirror:
bash
curl -fsSL https://cdn.jsdelivr.net/gh/fengyily/shield-cli@main/install.sh | shBuild from Source
bash
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
bash
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 |