Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

mofa-cli

MoFA 的命令行接口。

目的

mofa-cli 提供:

  • 项目脚手架
  • 开发服务器
  • 构建和打包工具
  • 智能体管理

安装

cargo install mofa-cli

命令

创建新项目

mofa new my-agent
cd my-agent

运行智能体

mofa run

开发服务器

mofa serve --port 3000

构建

mofa build --release

项目模板

# 基本智能体
mofa new my-agent --template basic

# ReAct 智能体
mofa new my-agent --template react

# Secretary 智能体
mofa new my-agent --template secretary

# 多智能体系统
mofa new my-agent --template multi

另见