NextFarm CLI
nextfarm 将NextFarm AI和NextFarm开发者平台带到您的终端。
- 闲谈,聊天 使用NextFarm AI处理您的真实工作空间数据:类型
nextfarm。 - 脚本,:
nextfarm -p "question" --json用…流--output-format stream-json。 - 开发人员工具:调用API、AI工具、API密钥、webhook (
nextfarm webhooks listen --forward-to localhost:3000),为其他助手设置MCP。
文档: https://developers.nextfarm.vn/docs/cli
安装
macOS / Linux:
curl -fsSL https://developers.nextfarm.vn/install.sh | sh
Windows (PowerShell):
irm https://developers.nextfarm.vn/install.ps1 | iex
自制程序:
brew install nextx-organization/nextfarm/nextfarm
npm (Node 20+):
npm install -g nextfarm
快速启动
nextfarm login # browser, or --qr over SSH
nextfarm # open the chat
nextfarm -p "which plots are due for harvest this week"
nextfarm doctor
在CI中,使用API密钥(NEXTFARM_API_KEY).
安全
令牌在可用时保存在操作系统密钥链中。如果没有您在交互式终端上的确认,助理所建议的内容将永远不会被应用。报告中所描述的漏洞 SECURITY.md。
许可证
麻省理工学院