CLI Reference

CLI Reference

The mm command is the main entry point for Mostly Modular CLI workflows.

Core commands

The unified CLI foundation is:

mm <command> [args]

The six canonical commands are init, build, run, test, pack, and publish.

`mm init`

Create a new Mostly Modular project.

mm init my-game --preset menu-shell
mm init --list-presets
mm init my-game --lang rust

`mm new`

Alias for mm init.

mm new my-game
mm new --preset menu-shell my-game
mm new --lang rust my-game

`mm build`

Build project plugins into WebAssembly.

mm build
mm build --release
mm build --project-dir ./my-game

`mm run`

Run a Mostly Modular project or explicit WASM files.

mm run
mm run --watch
mm run --windowed
mm run --project-dir ./my-game
mm run ./target/wasm32-unknown-unknown/debug/my_game.wasm

`mm test`

Run project QA checks.

mm test
mm test --json

`mm pack`

Package a project for distribution.

mm pack

`mm publish`

Publish a package or project artifact.

mm publish

`mm plugin`

Manage plugins inside a project.

mm plugin new player
mm plugin list
mm plugin --help

`mm docs`

Open or generate documentation helpers.

mm docs --help

`mm doctor`

Check local environment and prerequisites.

mm doctor

`mm try`

Launch the starter experience quickly.

mm try

Help and version

mm help
mm --help
mm version
mm --version

Notes

  • Use mm --help for command-specific flags and examples.
  • mm new ... is supported as an alias for mm init ....
  • mm run --hot-reload is supported as an alias for mm run --watch.
  • mm run reads built WASM plugins from the project. If game.toml lists [plugins.required] entries that are missing, mm run warns before launch.