✦ New:NextFarm Camera AI watches ponds, pens and insect traps for you 24/7Learn more →
HelpNextFarm CLICài trên Linux, macOS, Homebrew và npm

Cài trên Linux, macOS, Homebrew và npm

2 min read

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áyGói script tảiGhi chú
Windows x64nextfarm-windows-x64.zipĐúng gói của lệnh PowerShell ở mục trên. Script không có bản Windows ARM.
Linux x64nextfarm-linux-x64.tar.gzCPU x86_64 hoặc amd64.
Linux ARM64nextfarm-linux-arm64.tar.gzCPU arm64 hoặc aarch64.
macOS Apple Siliconnextfarm-darwin-arm64.tar.gzMac chip M.
macOS Intelnextfarm-darwin-x64.tar.gzMac 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áchDùng khiLệnh
HomebrewMáy đã có Homebrew.brew install nextx-organization/nextfarm/nextfarm
npmMá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: đặt NEXTFARM_VERSION=0.3.4 trước lệnh curl. Đổi chỗ cài: đặt NEXTFARM_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.

Was this article helpful?

Still need help?

Our AI support answers instantly — or a support ticket will be handled within 4 business hours.