gulp-cli for Mac
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
- Open Terminal (press ⌘ + Space and type “Terminal”).
- If Homebrew is not installed yet, run the command below first.
- Run this command:
Latest 10 releases
Last updated 2025-06-01; current version v3.1.0, with the latest 10 releases listed.
| Version | Released | Type | Size | macOS | Windows | Linux |
|---|---|---|---|---|---|---|
| v3.1.0 | 2025-06-01 | Stable | — | — | — | — |
| v3.0.0 | 2024-03-24 | Stable | — | — | — | — |
| v2.3.0 | 2020-06-04 | Stable | — | — | — | — |
| v2.2.1 | 2020-05-20 | Stable | — | — | — | — |
| v2.2.0 | 2019-04-20 | Stable | — | — | — | — |
| v2.1.0 | 2019-03-26 | Stable | — | — | — | — |
| v2.0.1 | 2018-01-22 | Stable | — | — | — | — |
| v2.0.0 | 2017-12-21 | Stable | — | — | — | — |
| v1.4.0 | 2017-12-21 | Stable | — | — | — | — |
| v1.3.0 | 2017-12-21 | Stable | — | — | — | — |
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.
| App | Version | License | Architecture | 30-day installs |
|---|---|---|---|---|
| gulp-cli | v3.1.0 | MIT | CLI | 12 |
| openssl@4 | openssl-4.1.0 | Apache-2.0 | CLI | 494,798 |
| xz | v5.8.4 | 0BSD AND GPL-2.0-or-later | CLI | 346,605 |
| pkgconf | pkgconf-3.0.10 | ISC | CLI | 311,054 |
Similar apps: Command-line Tools
openssl@4
Cryptography and SSL/TLS Toolkitxz
General-purpose data compression with high compression ratiopkgconf
pkgconf is a program which helps to configure compiler and linker flags for development…node
Node.js is an open-source, cross-platform JavaScript runtime environment.gh
GitHub command-line toolcmake
CMake is a cross-platform, open-source build system generator.Categories: Command-line Tools