Difference between revisions of "Command-line arguments (Client)"

From FileZilla Wiki
Jump to navigationJump to search
(First draft)
 
(First version.)
Line 1: Line 1:
== DRAFT ==
 
Unfinished page, saved for backup purposes.
 
 
 
== FileZilla Client 2.x Command-Line Arguments ==
 
== FileZilla Client 2.x Command-Line Arguments ==
  
FileZilla Client does support some basic command line options, but as the program isn't meant to be a command-line application, only a small part of the functions are available through the command-line.
+
FileZilla Client does support some basic command-line options, but it's primary a GUI application and as such isn't meant to do scripting/automation. Some functionality are never the less available through the command-line.
  
=== Synopsis ===
+
=== Standard Synopsis ===
 
<ul>
 
<ul>
<li>filezilla.exe <URL> [-du] ...</li>
+
<li>filezilla.exe <URL> [-du] <sourcefile> <targetdir> [-t] <targetname></li>
<li>filezilla.exe -s <name of site in Site Manager> [-du] ...</li>
+
<li>filezilla.exe -s <name of site in Site Manager> [-du] <sourcefile> <targetdir> [-t] <targetname></li>
 
</ul>
 
</ul>
  
Line 33: Line 30:
  
 
<li>URL<br />
 
<li>URL<br />
   You can specify a URL FileZilla connect to when started.
+
   You can specify an URL FileZilla connect to when started.
 
</li>
 
</li>
 
<li>-s <name of site in Site Manager><br />
 
<li>-s <name of site in Site Manager><br />
Line 44: Line 41:
 
<li>
 
<li>
 
-u <sourcefile> <targetdir><br />
 
-u <sourcefile> <targetdir><br />
   Uploads the specified file into the target dir on the server. <sourcefile> has to be the full path of the file..
+
   Uploads the specified file into the target dir on the server. <sourcefile> has to be the full path of the file.
 
</li>
 
</li>
 
<li>
 
<li>
 
-t <targetname><br />
 
-t <targetname><br />
   Only valid together with -u or -d: Specifies an alternate name for the target file..
+
   Only valid together with -u or -d: Specifies an alternate name for the target file. Must come directly after one of -u or -d.
 +
</li>
 +
<li>
 +
-quit <br />
 +
Shuts down all running instances of FileZilla. Must be used solely; can't be combined with any of the other arguments.
 +
</li>
 +
<li>
 +
-i <br />
 +
Imports a Site Manager .xml file.
 +
</li>
 +
</ul>
 +
 
 +
=== Options ===
 +
 
 +
<ul>
 +
<li>
 +
-close <br />
 +
  Will close FileZilla after all transfers have finished.
 +
</li>
 +
<li>
 +
-config <configfile> <br />
 +
  Loads the file specified as configuration for the program. If used it has to be the first argument to FileZilla.
 +
</li>
 +
<li>
 +
-overwrite <br />
 +
To set the fileexists action to overwrite.
 
</li>
 
</li>
 
</ul>
 
</ul>
Line 57: Line 79:
 
     Will connect to the site "mySite" (defined in the Site Manager) when FileZilla starts.
 
     Will connect to the site "mySite" (defined in the Site Manager) when FileZilla starts.
 
</li>
 
</li>
<li>filezilla.exe -u "c:\Program File\FileZilla\FileZilla.exe" ftp://user:pass@ftp.myserver.com/foobar -t CoolProg.exe<br/>
+
<li>filezilla.exe <nowiki>ftp://user:pass@ftp.myserver.com/foobar</nowiki> -u "c:\Program File\FileZilla\FileZilla.exe" -t CoolProg.exe<br/>
 
     Will upload FileZilla.exe to the host (and directory "foobar") specified and give it the name "CoolProg.exe".
 
     Will upload FileZilla.exe to the host (and directory "foobar") specified and give it the name "CoolProg.exe".
 
</li>
 
</li>
 
</ul>
 
</ul>

Revision as of 15:14, 16 June 2006

FileZilla Client 2.x Command-Line Arguments

FileZilla Client does support some basic command-line options, but it's primary a GUI application and as such isn't meant to do scripting/automation. Some functionality are never the less available through the command-line.

Standard Synopsis

  • filezilla.exe <URL> [-du] <sourcefile> <targetdir> [-t] <targetname>
  • filezilla.exe -s <name of site in Site Manager> [-du] <sourcefile> <targetdir> [-t] <targetname>

Description

  • filezilla.exe <protocol>://<username>:<password>@<host>
    Used to connect to a host running a ftp server. Protocol can either be FTP:// or SFTP:// and host have the syntax <host address>:<port>.
  • filezilla.exe -s <name of site in Site Manager>
    Used to connect to a host that is defined in the Site Manager of the program. The name of the site is case sensitive.
  • filezilla.exe [-du] <sourcefile> <targetdir> [-t] <targetname>
    Used to download (-d) or upload (-u) a file from/to the host.

User Commands

The supported user commands are:

  • URL
    You can specify an URL FileZilla connect to when started.
  • -s <name of site in Site Manager>
    Specifies an already defined site in the Site Manager that FileZilla tries to connect to when started.
  • -d <sourcefile> <targetdir>
    Downloads the specified file from the server into the target dir.
  • -u <sourcefile> <targetdir>
    Uploads the specified file into the target dir on the server. <sourcefile> has to be the full path of the file.
  • -t <targetname>
    Only valid together with -u or -d: Specifies an alternate name for the target file. Must come directly after one of -u or -d.
  • -quit
    Shuts down all running instances of FileZilla. Must be used solely; can't be combined with any of the other arguments.
  • -i
    Imports a Site Manager .xml file.

Options

  • -close
    Will close FileZilla after all transfers have finished.
  • -config <configfile>
    Loads the file specified as configuration for the program. If used it has to be the first argument to FileZilla.
  • -overwrite
    To set the fileexists action to overwrite.

Examples

  • filezilla.exe -s mySite
    Will connect to the site "mySite" (defined in the Site Manager) when FileZilla starts.
  • filezilla.exe ftp://user:pass@ftp.myserver.com/foobar -u "c:\Program File\FileZilla\FileZilla.exe" -t CoolProg.exe
    Will upload FileZilla.exe to the host (and directory "foobar") specified and give it the name "CoolProg.exe".