Using the CLI

Using the CLI

Installing the CLI

Run sudo npm install -g grunt-cli (Windows users should omit "sudo ", and may need to run the command-line with elevated privileges).

The grunt command-line interface comes with a series of options. Use grunt -h from your terminal to show these options.

--help, -h

Display help text

--base, -b

Specify an alternate base path. By default, all file paths are relative to the Gruntfile.

Alternative to grunt.file.setBase(...)

--no-color

Disable colored output.

--gruntfile

Specify an alternate Gruntfile.

By default, grunt looks in the current or parent directories for the nearest Gruntfile.js or Gruntfile.coffee file.

--debug, -d

Enable