☰ Menu
CLI Open source 12 installs/mo

gulp-cli for Mac

gulp-cli

gulp-cli — a macOS app available via Homebrew.

gulp-cli — overview

Command Line Utility for Gulp

Install

Usage

Custom Metadata

When listing tasks with the gulp -T command, gulp-cli displays some custom metadata as defined upon task functions. Currently supported properties:

task.description - String of the description to display.

task.flags - Object with key/value pairs being flag/description to display.

Example Usage:

Tasks

The task(s) listed on the command line will be executed. If more than one task is listed, Gulp will execute all of them concurrently, that is, as if they had all been listed as dependencies of a single task.

By default, Gulp does not serialize tasks listed on the command line. If you would like to execute tasks serially, you must specify the --series flag. e.g. gulp clean build --series

Just running gulp will execute the task default. If there is no default task, gulp will error.

Completion Thanks to the grunt team, specifically Tyler Kellen

To enable tasks auto-completion in shell you should add eval "$(gulp --completion=shell)" in your .shellrc file.

Bash:

Add eval "$(gulp --completion=bash)" to ~/.bashrc.

Zsh:

Add eval "$(gulp --completion=zsh)" to ~/.zshrc.

Powershell:

Add Invoke-Expression ((gulp --completion=powershell) -join [System.Environment]::NewLine) to $PROFILE.

Fish:

Add gulp --completion=fish | source to ~/.config/fish/config.fish.

Compilers

You can find a list of supported JavaScript variant languages in Interpret. If you would like to add support for a new language, send pull requests/open issues on that project.

Environment

The CLI adds process.env.INIT_CWD which is the original cwd it was launched from.

Configuration

Configuration is supported through the use of a .gulp.* file (e.g. .gulp.js, .gulp.ts). You can find a list of supported JavaScript variant languages in Interpret.

A configuration file from the current working directory (cwd) or above are selected before a configuration file from the home directory (~).

Supported configurations properties:

Flags

gulp has very few flags to know about. All other flags are for tasks to use if needed.

__Some flags only work with gulp 4 and will be ignored when invoked against gulp 3.__

Flag Short Flag Description

--help -h Show this help.

--version -v Print the global and local gulp versions.

--preload [path]

Will preload a module before running the gulpfile. This is useful for transpilers but also has other applications.

--gulpfile [path] -f Manually set path of gulpfile. Useful if you have multiple gulpfiles. This will set the CWD to the gulpfile directory as well.

--cwd [path]

Manually set the CWD. The search for the gulpfile, as well as the relativity of all preloads (with the --preload flag) will be from here.

--tasks -T Print the task dependency tree for the loaded gulpfile.

--tasks-simple

Print a plaintext list of tasks for the loaded gulpfile.

--tasks-json [path]

Details

Gulp 的命令行工具

How to install gulp-cli

  1. Open Terminal (press ⌘ + Space and type “Terminal”).
  2. If Homebrew is not installed yet, run the command below first.
  3. Run this command:

Latest 10 releases

Last updated 2025-06-01; current version v3.1.0, with the latest 10 releases listed.

VersionReleasedTypeSizemacOSWindowsLinux
v3.1.02025-06-01Stable————
v3.0.02024-03-24Stable————
v2.3.02020-06-04Stable————
v2.2.12020-05-20Stable————
v2.2.02019-04-20Stable————
v2.1.02019-03-26Stable————
v2.0.12018-01-22Stable————
v2.0.02017-12-21Stable————
v1.4.02017-12-21Stable————
v1.3.02017-12-21Stable————

Data from GitHub Releases; stable releases first, each group sorted newest first.

Prebuilt bottle platforms

Official Homebrew bottles cover:

  • all

⚠️ No prebuilt bottle for Intel Macs; Intel users need brew install --build-from-source to build from source.

Compared with similar apps

Only public metadata is compared, with no subjective recommendation; see the compare pages for field-by-field comparisons.

Compared with similar apps
AppVersionLicenseArchitecture30-day installs
gulp-cliv3.1.0MITCLI12
openssl@4openssl-4.1.0Apache-2.0CLI494,798
xzv5.8.40BSD AND GPL-2.0-or-laterCLI346,605
pkgconfpkgconf-3.0.10ISCCLI311,054

Similar apps: Command-line Tools

Leave a comment

评论表单加载中…