Viết theo CLI bản 0.3.4, ảnh chụp trên Windows PowerShell bản 0.3.3, dữ liệu thật đã được che. Xem đủ cờ lệnh tại developers.nextfarm.vn/docs/cli.
📌 Vị trí: Trang developers.nextfarm.vn/docs/cli → mục Cài đặt.
| Máy | Gói script tải | Ghi chú |
|---|---|---|
| Windows x64 | nextfarm-windows-x64.zip | Đúng gói của lệnh PowerShell ở mục trên. Script không có bản Windows ARM. |
| Linux x64 | nextfarm-linux-x64.tar.gz | CPU x86_64 hoặc amd64. |
| Linux ARM64 | nextfarm-linux-arm64.tar.gz | CPU arm64 hoặc aarch64. |
| macOS Apple Silicon | nextfarm-darwin-arm64.tar.gz | Mac chip M. |
| macOS Intel | nextfarm-darwin-x64.tar.gz | Mac chip Intel. |
Lệnh script trên Linux và macOS:
curl -fsSL https://developers.nextfarm.vn/install.sh | sh
File được cài vào ~/.local/bin/nextfarm. CPU khác x64 và arm64 thì script dừng. Hệ điều hành không phải Linux hay macOS thì script bảo dùng lệnh PowerShell.
| Cách | Dùng khi | Lệnh |
|---|---|---|
| Homebrew | Máy đã có Homebrew. | brew install nextx-organization/nextfarm/nextfarm |
| npm | Máy đã có Node.js 20 trở lên. Chạy được cả trên Windows. | npm install -g nextfarm |
⚠️ Script cài không cần Node. Khoá model bạn tự thêm được giữ trong Keychain của hệ điều hành khi cài bằng npm hoặc Homebrew, và không gửi về NextFarm. Ghim bản script: đặtNEXTFARM_VERSION=0.3.4trước lệnh curl. Đổi chỗ cài: đặtNEXTFARM_INSTALL_DIR.
Nâng bản
nextfarm update
nextfarm update --channel latest
latest là bản ổn định. next là kênh bản sắp phát hành. Tắt nhắc bản mới bằng NEXTFARM_NO_UPDATE_CHECK hoặc nextfarm config set updateCheck off.