grunt logo


The Grunt task runner.

Getting Started

How to install Grunt?

Getting Started

Here is the quick start guide to get you up and running as quickly as possible.

Install Node.js

$ curl -o- | bash
$ nvm install stable
$ nvm use stable
$ nvm alias default stable

The latest version of node should now be installed. If you want to make sure type the following:

node -v

Install grunt-cli

$ npm install -g grunt-cli

The latest version of grunt-cli should now be installed globally. If you want to make sure type the following:

grunt -v

Create the package.json file

If you haven't created a package.json in your project directory the next command will bootstrap it.

$ npm init

Install Grunt

$ npm install grunt --save-dev

Create the Gruntfile.js file

Grunt relies on a configuration file named Gruntfile. To create a blank Gruntfile type:

$ curl -o Gruntfile.js