1.

What Is Grunt-cli?

Answer»

GRUNT cli is COMMAND line interface to run grunt commands. In other words, it’s a tool to access Grunt from command line anywhere in the system. To INSTALL, grunt –cli execute following command

npm install -g grunt-cli

This will put the grunt command in your system path, allowing it to be run from any directory. Please note, that installing grunt-cli, doesn’t install grunt on your system.

-g MEANS global which means it adds to PATH variables of the system so that you can run grunt from anywhere (without going to specific FOLDER on command prompt).

The reason for having two components is to ensure that we can run different grunt versions side-by-side (i.e. legacy versions in older projects). Hence it is recommended to install grunt-cli globally while grunt should be installed on a per-project basis.

Grunt cli is command line interface to run grunt commands. In other words, it’s a tool to access Grunt from command line anywhere in the system. To install, grunt –cli execute following command

npm install -g grunt-cli

This will put the grunt command in your system path, allowing it to be run from any directory. Please note, that installing grunt-cli, doesn’t install grunt on your system.

-g means global which means it adds to PATH variables of the system so that you can run grunt from anywhere (without going to specific folder on command prompt).

The reason for having two components is to ensure that we can run different grunt versions side-by-side (i.e. legacy versions in older projects). Hence it is recommended to install grunt-cli globally while grunt should be installed on a per-project basis.



Discussion

No Comment Found