node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »



Build Status PRs Welcome

A CLI for getting started with MERN stack. It offers a super simple boilerplate project and additional utilities to get started with isomorphic React and Redux apps.

npm install -g mern-cli

Available Commands

init [name] -t=<variant_name>       Initialize a MERN project (Default variant: mern-starter).
list                                List MERN variants
search [term]                       Search for a MERN variant
info [term]                         View details of a MERN variant

Create a new app with default mern-starter

mern init my_app

Install Dependencies

cd my_app && npm install


Generate React components, Express routes and controllers and Mongoose models using mern generator.

To list out all available generators


Help and Version

mern -v // Check CLI version
mern --help // Get help and check usage


Testing & Deployment

  • Commands that make your app ready for production
  • Easy testing - React and Node.js
  • Deployment options
    • One click Deploy - mern deploy
    • Hashnode's PaaS offering (Experimental)
    • Focus on your MERN app and leave the architecture, Devops etc for us


MERN is released under the MIT License.