CLI
@mavonengine/cli provides the mavonengine command. It requires Node 24 or newer.
npm install -D @mavonengine/cli
npx @mavonengine/cli --help
mavonengine create
Creates a new project from the multiplayer template, installs its dependencies and starts it like mavonengine dev.
npx @mavonengine/cli create my-game
Asks for a name if none is given, and puts the game's name, made from it (my-game → My Game), as appName in mavonengine.json. A startup screen shows each step; then the dev script starts, the dashboard takes over as soon as the game server answers, and the game opens in the browser. It replaces @mavonengine/create-bootstrap, which now forwards to it.
| Option | Default | |
|---|---|---|
--cwd <dir> | current directory | Where to create the project directory |
--no-dashboard | Print the progress instead of showing the dashboard | |
--port <port> | 8050 | Game server HTTP port for the dashboard |
--theme <name> | dark | Dashboard theme |
--transparent | Let a transparent terminal background show through | |
--no-open | Don't open the game in the browser once the server is up |
mavonengine dev
Runs the dev script of the project you are in and shows the dashboard for it. For the multiplayer template that starts the game server and the client together; its npm run dev is mavonengine dev.
npx @mavonengine/cli dev
# From somewhere else
npx @mavonengine/cli dev --cwd path/to/my-game
- Runs the project's
dev:serverscript, ordevwhen there is none. - The project root is the nearest
package.jsonupwards that depends on@mavonengine/coreand has adevscript, so it also works from insideclient/orserver/. - The package manager comes from the lockfile (
npm,pnpm,yarnorbun). - Once the server is up, the game opens in the browser;
oopens it again.qorCtrl-Cstops the dev script and everything it started.
Takes the same options as create.
Installing plugins while it runs
mavonengine dev can install packages into the project and restart the dev servers afterwards, so a new plugin is loaded without stopping anything yourself:
- from the dashboard's Plugins tab, with
ion a plugin that is available to install; - from the editor's Plugins view, with the Install button of an available plugin, or by typing any package (a name,
name@version, afile:path or a URL) into "Another package".
Both ask first and point at the package's source: installing a package runs its code on your machine, and nothing reviews what you install. The install is the same as mavonengine install --yes, followed by a restart of the dev script.
The editor's install requests are only taken from localhost and from the game's own page, so another site open in the browser can't install anything. Version ranges such as ^1.0.0 are refused there; use the terminal for those.
mavonengine plugins
Lists the plugins that are available to install, and inside a project marks the ones already in its mavonengine.json.
npx @mavonengine/cli plugins
The list is plugins.json in the MavonEngine repository, read from the main branch on GitHub every time the command runs. See Available plugins.
| Option | Default | |
|---|---|---|
--json | Print the list as JSON | |
--url <url> | $MAVONENGINE_PLUGINS_URL | Read the list from somewhere else, such as a fork or a branch |
mavonengine install
Installs packages with the project's package manager. For each one that is a MavonEngine plugin, it shows where the plugin runs and which prefabs it brings, and asks whether to add it to mavonengine.json.
npx @mavonengine/cli install @mavonengine/http-monitoring
# Anything your package manager takes
npx @mavonengine/cli install @acme/forest@^2 file:../my-plugin --yes
| Option | Default | |
|---|---|---|
--cwd <dir> | current directory | Where to start looking for the project |
-y, --yes | Add plugins to mavonengine.json without asking | |
--no-register | Only install |
mavonengine asset:publish
Copies the files a plugin lets you change into your project, such as the mail plugin's layout:
npx @mavonengine/cli asset:publish @mavonengine/mail
They go to resources/<package>/, here resources/@mavonengine/mail/layout.html. The plugin uses your copy from then on, so change it there and commit it. Files you have already are kept, so publishing again after an update only adds the plugin's new files. --force replaces yours with the plugin's.
A plugin offers files with publish in its manifest, see Files a project can change.
| Option | Default | |
|---|---|---|
--cwd <dir> | current directory | Where to start looking for the project |
--force | Replace the files you have with the plugin's |
mavonengine build
Runs the project's build script, then lists what each plugin put into the release. Only the shared plugin assets and those of the prefabs listed in mavonengine.json are copied, so a release never ships, or requests, a file it doesn't use.
npx @mavonengine/cli build
mavonengine dashboard
A live terminal dashboard for a running game server, see Monitoring. With a database plugin it gets a Database tab; pass the server's admin token as --token to read it on a server that has one.
npx @mavonengine/cli dashboard
npx @mavonengine/cli dashboard --sim # simulated data, no server needed
mavonengine mcp
A Model Context Protocol server for AI assistants, see AI Assistants.