Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

mc add

mc add [OPTIONS] <MOD_SLUG>...

Adds mods to the modrinth group of the manifest’s mods block. Each MOD_SLUG is the mod’s identifier on the mod registry. The latest version compatible with the configured Minecraft version and loader is looked up and pinned; the command fails if a mod cannot be found for that combination.

A mod loader must be configured under minecraft before mods can be added.

Changes take effect the next time the instance starts, which also installs any required dependencies — see Managing Mods.

Options

  • --manifest-path <PATH> — path to mc.kdl. Defaults to ./mc.kdl.
  • --lockfile-path <PATH> — path to mc.lock. Defaults to ./mc.lock.

Examples

mc add lithium
mc add carpet servux