moxzi
Docs / CLI

CLI

Build Motoko projects with moxzi: packages, migrations and errors.

PageWhat it covers
Building with moxziCompile Motoko to a deployable wasm module, control warnings and output, and see where build time goes.
Writing fast MotokoMeasure what your code costs in instructions, and the loop, number and library choices that keep it low.
Projects and packagesLay out a multi-file project, use mops packages, import local libraries and Candid interfaces.
MigrationsChange the type of an actor's stored data between versions, and check an upgrade before you deploy it.
Fixing build errorsRead moxzi's error messages, fix the common ones, and tell a mistake in your code from a compiler bug.
Coming from mocMap moc command lines and flags to moxzi, and the defaults that differ.

If you only read one page, read Building with moxzi.