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

Command-line interface for MoFA.

Purpose

mofa-cli provides:

  • Project scaffolding
  • Development server
  • Build and packaging tools
  • Agent management

Installation

cargo install mofa-cli

Commands

Create New Project

mofa new my-agent
cd my-agent

Run Agent

mofa run

Development Server

mofa serve --port 3000

Build

mofa build --release

Project Templates

# Basic agent
mofa new my-agent --template basic

# ReAct agent
mofa new my-agent --template react

# Secretary agent
mofa new my-agent --template secretary

# Multi-agent system
mofa new my-agent --template multi

See Also