Skip to content

CLI Reference

fall-development-rob edited this page Mar 2, 2026 · 1 revision

CLI Reference

Rust CLI

# WACC calculation
cargo run -p corp-finance-cli -- wacc \
  --risk-free-rate 0.04 \
  --equity-risk-premium 0.055 \
  --beta 1.2 \
  --cost-of-debt 0.06 \
  --tax-rate 0.25 \
  --debt-weight 0.4 \
  --equity-weight 0.6

# DCF valuation
cargo run -p corp-finance-cli -- dcf \
  --cash-flows "[100,110,120,130,140]" \
  --discount-rate 0.10 \
  --terminal-growth 0.02

# Bond pricing
cargo run -p corp-finance-cli -- bond-price \
  --face-value 1000 \
  --coupon-rate 0.05 \
  --ytm 0.06 \
  --periods 10

Agent CLI

# Pipeline mode (default) — routes to best agent(s), coordinates, synthesises
cfa analyze "Calculate WACC for beta 1.2, risk-free 4%, ERP 6%"

# Single-agent mode — bypass routing, use specific analyst
cfa analyze --agent cfa-equity-analyst "Run a 3-stage DCF"

# Choose swarm topology
cfa analyze --topology mesh "Credit assessment and VaR for a BB-rated issuer"

# Interactive REPL
cfa analyze -i

# List available agents
cfa list-agents

MCP Server

# Start the corp-finance MCP server
cd packages/mcp-server && npm start

# Start the data MCP server
cd packages/data-mcp-server && npm start

# Start the vendor MCP server
cd packages/vendor-mcp-server && npm start

Clone this wiki locally