安装

HnsX 提供三种安装方式,按推荐程度排序。

1. curl 安装(推荐)

curl -sSL hnsx.dev/install.sh | sh

脚本会自动检测平台、下载最新 release、校验 checksum 并把 hnsx 加到 PATH

2. Homebrew(macOS / Linux)

brew tap narcilee7/hnsx
brew install narcilee7/hnsx/hnsx

3. 源码构建

git clone https://github.com/narcilee7/HnsX.git
cd HnsX
make build-cli
./bin/hnsx version

升级

hnsx update --check
hnsx update

验证安装

hnsx version
hnsx doctor