Skip to content

svassr/grunt-ftp

 
 

Repository files navigation

grunt-ftp Build Status

Upload files to an FTP-server

Useful for uploading and deploying things.

Install

$ npm install --save-dev grunt-ftp

Usage

require('load-grunt-tasks')(grunt); // npm install --save-dev load-grunt-tasks

grunt.initConfig({
	ftp: {
		options: {
			host: 'website.com',
			user: 'johndoe',
			pass: '1234'
		},
		upload: {
			files: [{
				cwd: 'src',
				src: ['**/*'],
				dest: 'public_html'
			}]
		}
	}
});

grunt.registerTask('default', ['ftp']);

Options

host

Required
Type: string

port

Type: number
Default: 21

user

Type: string
Default: 'anonymous'

pass

Type: string
Default: '@anonymous'

License

MIT © Sindre Sorhus

About

Upload files to an FTP-server

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%