CLI Reference — Mapanare
Build, run, check, and manage Mapanare projects from the command line.
Commands
mapanare run <file> — Compile and run. mapanare build <file> — Compile to native binary via LLVM. mapanare jit <file> — JIT-compile and run natively. mapanare check <file> — Type-check only. mapanare compile <file> — Transpile to Python. mapanare emit-llvm <file> — Emit LLVM IR. mapanare fmt <file> — Format source code. mapanare init [path] — Initialize new project. mapanare install <pkg> — Install package. mapanare targets — List compilation targets.
Quick Start
mapanare init my-project
cd my-project
mapanare run src/main.mn
mapanare check src/main.mn
mapanare build src/main.mn
Optimization Levels
-O0 No optimization (fastest compile, best for debugging). -O1 Basic optimizations. -O2 Standard (stream fusion, agent inlining). -O3 Aggressive (maximum performance).
Cross-Compilation
mapanare build --target x86_64-linux src/main.mn
Package Management
mapanare install github.com/user/package