Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a batch file that builds an application, then I want to upload it to a ftp server from command line.

Considering I do the upload manually with FileZilla, is there a command line for it to upload files?

I am limited to Windows.

share|improve this question

6 Answers 6

FileZilla does not have any command line arguments (nor any other way) that allow automatic transfer. See:
https://wiki.filezilla-project.org/Command-line_arguments_(Client)
http://trac.filezilla-project.org/ticket/2317

Though you can use any other FTP client that allows automation.

For example WinSCP:
http://winscp.net/eng/docs/guide_automation

Typical WinSCP script for upload looks like:

option batch abort
option confirm off
open ftp://user:password@example.com/
put c:\files\*.* /home/user/
close

To run the script (script.txt) use:

WinSCP.com /script=script.txt

(I'm an author of WinSCP)

share|improve this answer

There is no command line for Filezilla to upload files - but you can use ftp (man ftp) or possibly curl (man curl) generally using a SSH connection.

On Linux you have much more access to options than on windows, but you could install cygwin to make Windows better.

Hope this helps, learning the command line is very time-saving - there are things you can do with it that would take ages using a gui.

share|improve this answer

FileZilla clients supports for command-line interface (CLI). These are the command-line arguments for FileZilla Client:

How to transfer files with FileZilla from command line?

share|improve this answer
    
I have just installed filezilla on ubuntu but when I try to either show the version or help I just get: ~$ filezilla -h Error: Unable to initialize gtk, is DISPLAY set properly? Why does the commandline client require a DISPLAY ? –  u123 Jan 2 '13 at 10:23

You should be able to use a FTP command line program such as PSFTP. Please note PSFTP does not use passv mode and therefore requires a Data connection for LAN FTP

share|improve this answer

You can use Window's built-in FTP client to do this. You don't need Filezilla.

ftp
open *computer_name*
send *local_file* {remote file}
share|improve this answer

Check out this site for commandline arguments for Filezilla.

share|improve this answer
    
Hello and welcome to superuser.com. It is customary to include the answer in the post itself instead of or in addition to refering to sites so that the answer is still valid if the site referred to goes down. Rewrite your answer to include this and I will remove my -1. –  Mogget Nov 14 '13 at 20:02

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.