Gulp Sips: New Command Line Interface

Janiceilene
Jul 10, 2017 · 2 min read

This is part of our Gulp Sips series: bringing you easily-digestible bits of information on our advanced or unknown features.

A Standalone CLI

Traditionally, you’ve run your tasks using the gulp command installed by the main gulp package on npm. However, we’ve moved away from coupling the CLI and library together. The CLI now lives in the gulp-cli package.

But why?

This was set into motion because we needed to support versions 3 & 4 (upcoming), even though the two were vastly different. An added benefit is a reduction in the size of global installation.

We were also able to version separately from the main package, allowing for features and bug fixes without impacting your workflow. Many of those features will be topics of upcoming Sips, including adding custom metadata to tasks and utilizing configuration files.

Use it now!

If you’ve globally installed gulp before, you’ll want to remove the old version. To check your version, run:

gulp -v
Ideal results of gulp -v

If you don’t see CLI Version 1.x (as shown above), remove your old installation by running:

npm rm --global gulp

Now, you can install the standalone CLI using:

npm install --global gulp-cli

Run gulp -v again. Everything should match the screenshot above.

gulpjs

Curated gulp articles

gulpjs

Curated gulp articles

Janiceilene

Written by

Technical writer at GitHub. Content writer for gulp. Former Outreachy Intern for Systers. Mom to two tiny humans. (Views are my own)

gulpjs

Curated gulp articles