Upload files to or download from an FTP-server
npm install grunt-ftp> Upload files to or download from an FTP-server
Useful for uploading, deploying and downloading things.
``sh`
npm install --save-dev grunt-ftp
`js
require('load-grunt-tasks')(grunt); // npm install --save-dev load-grunt-tasks
grunt.initConfig({
ftpPut: {
options: {
host: 'website.com',
user: 'johndoe',
pass: '1234'
},
upload: {
files: {
'public_html': 'src/*'
}
}
}
});
grunt.registerTask('default', ['ftpPut']);
`
`js
require('load-grunt-tasks')(grunt); // npm install --save-dev load-grunt-tasks
grunt.initConfig({
ftpGet: {
options: {
host: 'website.com',
user: 'johndoe',
pass: '1234'
},
download: {
files: {
'public_html/file.txt': 'src/file.txt'
}
}
}
});
grunt.registerTask('default', ['ftpGet']);
`
Required\
Type: string
Type: number\21
Default:
Type: string\'anonymous'
Default:
Type: string\'@anonymous'`
Default: