Skip to main content
Version: 3.x

mops toolchain use

Install specific tool version and update mops.toml file.

mops toolchain use <tool> [version]

Examples​

Install specific tool version

mops toolchain use moc 1.15.1
mops toolchain use wasmtime 41.0.0
mops toolchain use pocket-ic 15.0.0
mops toolchain use lintoko 0.11.0

You can specify latest as version to install the release with the highest version. A bugfix on an older line, published after a newer major release, is not latest.

mops toolchain use moc latest

For pocket-ic, versions below 9.0.0 are rejected — see pocket-ic versions.

If a version is not specified, you will be prompted to select the version from the list of available versions.

mops toolchain use moc

user prompt image

The picker lists stable releases only, highest version first, matching what mops toolchain use <tool> latest resolves to. Pass --prerelease to include prereleases (and let latest resolve to one):

mops toolchain use moc --prerelease

The flag only affects the picker and latest. With an explicit version, mops toolchain use moc 2.0.0-beta.0 --prerelease and mops toolchain use moc 2.0.0-beta.0 install the same thing.

Using explicit file paths​

You can also specify file paths to toolchain binaries instead of version numbers. This is useful when building a tool from source. File paths must start with /, ./, or ../.

Examples​

mops toolchain use moc ./tools/moc
mops toolchain use lintoko /usr/local/bin/lintoko
mops toolchain use wasmtime ../custom-wasmtime/bin/wasmtime