@mesaprotocol/cli
v0.3.8
Published
Mesa CLI — Command-line interface for creating, validating, and running Stellar financial workflow apps
Readme
@mesaprotocol/cli
Command Line Interface (CLI) for Mesa Protocol — Embedded Finance Engine for Stellar.
📦 Installation
# Run directly with npx (recommended):
npx @mesaprotocol/cli create my-stellar-app --template remittance
# Or install globally:
npm install -g @mesaprotocol/cli🚀 Commands
1. create — Scaffold a New Financial App
Scaffold a complete, runnable monorepo workspace with React UI (apps/web), auto-registering runtime server (mesa-server.ts), and pre-configured workflow templates:
npx mesa create my-app --template remittanceAvailable Templates (--template):
remittance: Cross-Border Remittance Corridor (receive → delay → payment)payroll: Automated Corporate Payroll Payouts (receive → delay → multi-payment)escrow: Timelocked Escrow & Savings Circle (receive → delay → disburse)soroban: Soroban Smart Contract Yield Vault (receive → soroban-invoke → webhook)
2. validate — Validate Flow Definition Files
Validate a JSON flow definition file against @mesaprotocol/schema Zod specifications:
npx mesa validate packages/workflows/flow.json3. dev — Start Local Mesa Runtime Server
Launch the local Mesa Protocol runtime engine and dashboard:
npx mesa dev --port 3001