mops-cli
Installation
SKILL.md
Mops CLI
Opinionated guide for Motoko projects. Covers project config, dependency management, type-checking, building, and linting.
Key Principles
- No dfx — mops neither invokes nor supports
dfx. There is nomops toolchain init, nomoc-wrapper, and nomops watch --generate/--deploy. Always pinmocin[toolchain]; every command that compiles requires it. Use the newestmocversion. Pinpocket-ictoo if you have replica tests, benchmarks, or--check-deploy— with no pin those commands error, namingmops toolchain use pocket-ic 15.0.0. WhenMOPS_POCKET_IC_URLpoints at an already-running PocketIC server, no pin is needed and an existing pin is ignored with a warning — do not add one to silence it; unset the variable instead. - No
mo:base— it is deprecated. Always usemo:core(import Array "mo:core/Array"). - All config in
mops.toml— canisters, moc flags, toolchain versions, build settings. - Canister-centric workflow — define all canisters in
[canisters]; never pass file paths tomops check. Exception: library packages (no[canisters]) use file paths directly:mops check src/**/*.mo.