Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
G

gulp-ftp

> 编程语言
Open source

[DEPRECATED] Upload files to an FTP-server

100 stars0 likes1 views
WebsiteGitHub

About

[DEPRECATED] Upload files to an FTP-server

gulp-ftp

Deprecated in favor of vinyl-ftp.

Upload files to an FTP-server

Useful for uploading and deploying things.

Install

$ npm install --save-dev gulp-ftp

Usage

javascript
var gulp = require('gulp');
var gutil = require('gulp-util');
var ftp = require('gulp-ftp');

gulp.task('default', function () {
	return gulp.src('src/*')
		.pipe(ftp({
			host: 'website.com',
			user: 'johndoe',
			pass: '1234'
		}))
		// you need to have some kind of stream after gulp-ftp to make sure it's flushed
		// this can be a gulp plugin, gulp.dest, or any kind of stream
		// here we use a passthrough stream
		.pipe(gutil.noop());
});

API

ftp(options)

options.host

Required
Type: string

options.port

Type: number
Default: 21

options.user

Type: string
Default: 'anonymous'

options.pass

Type: string
Default: '@anonymous'

options.remotePath

Type: string
Default: '/'

The remote path to upload too.

Nonexistent directories will be created for you.

License

MIT © Sindre Sorhus

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

JavaScriptdeprecatedftpgulpgulp-plugin

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言