Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including mern-cli with all npm packages installed. Try it out:

mern-cli lists no main file and has no index.js, so it can't be directly required. If this is a mistake, please let us know. It may however contain internal files that you can require manually:

// require("mern-cli/[??]")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

mern-cli v3.0.1

A cli for generating MERN boilerplate


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.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free