Getting started with Mrm


npm install -g mrm


Print a list available of tasks:


Run a task or an alias

mrm gitignore
mrm license

Run multiple tasks:

mrm gitignore license

Override config options (or run without a config file):

mrm license --config:name "Gandalf the Grey" --config:email "" --config:url ""

Custom config and tasks folder:

mrm license --dir ~/unicorn

Run a task from a preset (globally installed mrm-preset-unicorn npm package, read more about presets):

mrm license --preset unicorn

Usage via npx

If you have npm 5.3 or newer you can use mrm without installation:

npx mrm
npx mrm gitignore
npx mrm license --config:name "Gandalf the Grey" --config:email "" --config:url ""


There are three ways for setting tasks configurations: interactive mode, command line parameters, and config files.

See tasks docs for available config options on core tasks.

Interactive mode

Use the -i argument to enable interactive/prompt mode:

npx mrm eslint -i

This will prompt for all ESLint Mrm task options prior to running the task. It will also use command line parameters and config files as defaults for each option.

When to use: use this configuration mode for one-time running Mrm (typically with npx) when you don't know available options upfront and don't want to create a config file.

Command line parameters

You can pass any option as a command line parameters as follows:

npx mrm license --config:name "Gandalf the Grey"

This will ultimately set the name config for this single task execution.

When to use: when you know upfront all the configuration names and expected values; when you are running mrm on CI.

Config files

Create ~/.mrm/config.json or ~/dotfiles/mrm/config.json:

indent: 'tab', // "tab" or number of spaces
readmeFile: '', // Name of readme file
licenseFile: '', // Name of license file
aliases: {
// Aliases to run multiple tasks at once
node: ['license', 'readme', 'editorconfig', 'gitignore']

When to use: when you often use the same configuration (usually when you scaffold new projects frequently); when you want to define sets of default task aliases.