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 — always pin
mocin[toolchain]. Use the newestmocversion. Pinpocket-ictoo if you have replica tests or benchmarks (otherwisemops test --mode replica,mops bench, andmops watchfall back to the deprecated dfx replica and print a warning). - 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.