gulp-shell is a command line interface for gulp.
gulp-shell is a handy command line interface for gulp developed by Sun Zheng'an.
Basic example:
var gulp = require('gulp');
var shell = require('gulp-shell');
gulp.task('basic-example', function () {
return gulp.src('*.js', {read: false})
.pipe(shell([
'echo <%= f(file.path) %>',
'ls -l <%= file.path %>'
], {
templateData: {
f: function (s) {
return s.replace(/$/, '.bak')
}
}
}));
});