Moc version management

Motoko Compiler version manager

  • If you want to use the latest moc version.
  • If you want to easily switch between moc versions.
  • If you don’t want to prefix all deploy commands with DFX_MOC_PATH = ...

Please, welcome mocv!

Quick start

  1. Install
npm i mocv -g
  1. Initialize
mocv init
  1. Select moc version
mocv

here you go

12 Likes

Thank you. This is super helpful

1 Like

Update!

  • Customizable init

  • Added support for zsh shell

  • Simplified use in GitHub workflows:

steps:
  - name: Select moc version
    run: npx mocv use 0.9.2
...
3 Likes

It is recommended to start using Mops to manage the moc version - Toolchain Management with Mops | Mops Docs

Mops supports per-project moc version management instead of global moc version.

Eventually mocv will be deprecated.

To uninstall mocv:

mocv reset
npm uninstall -g mocv
2 Likes