Skip to main content

mops add

Install a specific package and save it to mops.toml

mops add <package_name>


Install latest base package from mops registry

mops add base

Install specific version of base package from mops registry

mops add base@0.10.0

Add package from GitHub

mops add

For GitHub-packages you can specify branch, tag, or commit hash by adding #<branch/tag/hash>

mops add

Add local package

mops add ./shared



Add package to [dev-dependencies] section.


What to do with the lockfile

Default value is update if lockfile exists and ignore otherwise.

Possible values:

  • update - update lockfile (create if not exists). Always checks after update
  • ignore - ignore lockfile


Verbose output.