Differences

This shows you the differences between the selected revisions of the page.

commandline 2024-08-25 commandline 2024-12-16 (current)
Line 1: Line 1:
====== Command-line Options ====== ====== Command-line Options ======
 +
 +
===== [[parameters]] Parameters ===== ===== [[parameters]] Parameters =====
Parameters for ''[[executables|winscp.exe]]'' executable: Parameters for ''[[executables|winscp.exe]]'' executable:
-<code batch>+&amp;amp;lt;code batch&amp;amp;gt;
winscp.exe site|workspace|folder winscp.exe site|workspace|folder
-winscp.exe <session_url>[/path/[file]] +winscp.exe &amp;amp;lt;session_url&amp;amp;gt;[/path/[file]] 
-winscp.exe [mysession] [/sessionname=<name>]+winscp.exe [mysession] [/sessionname=&amp;amp;lt;name&amp;amp;gt;]
winscp.exe [mysession] [/newinstance] winscp.exe [mysession] [/newinstance]
-winscp.exe [mysession] /edit <path> +winscp.exe [mysession] /edit &amp;amp;lt;path&amp;amp;gt; 
-winscp.exe [mysession] /browse[=<file>]+winscp.exe [mysession] /browse[=&amp;amp;lt;file&amp;amp;gt;]
winscp.exe [mysession] /synchronize [local_directory] [remote_directory] [/defaults[=secs]] winscp.exe [mysession] /synchronize [local_directory] [remote_directory] [/defaults[=secs]]
winscp.exe [mysession] /keepuptodate [local_directory] [remote_directory] [/defaults[=secs]] winscp.exe [mysession] /keepuptodate [local_directory] [remote_directory] [/defaults[=secs]]
winscp.exe [mysession] /refresh [path] winscp.exe [mysession] /refresh [path]
winscp.exe [mysession] /upload file1 file2 file3 ... [/defaults[=secs]] winscp.exe [mysession] /upload file1 file2 file3 ... [/defaults[=secs]]
-winscp.exe [mysession] [/privatekey=<file> [/passphrase=<passphrase>]] +winscp.exe [mysession] [/privatekey=&amp;amp;lt;file&amp;amp;gt; [/passphrase=&amp;amp;lt;passphrase&amp;amp;gt;]] 
-winscp.exe [mysession] [/hostkey=<fingerprint>] +winscp.exe [mysession] [/hostkey=&amp;amp;lt;fingerprint&amp;amp;gt;] 
-winscp.exe [mysession] [/username=<user>] [/password=<pass>]+winscp.exe [mysession] [/username=&amp;amp;lt;user&amp;amp;gt;] [/password=&amp;amp;lt;pass&amp;amp;gt;]
winscp.exe [mysession] [/passwordsfromfiles] winscp.exe [mysession] [/passwordsfromfiles]
-winscp.exe [mysession] [/clientcert=<file> [/passphrase=<passphrase>]] +winscp.exe [mysession] [/clientcert=&amp;amp;lt;file&amp;amp;gt; [/passphrase=&amp;amp;lt;passphrase&amp;amp;gt;]] 
-winscp.exe [mysession] [/certificate=<fingerprint>]+winscp.exe [mysession] [/certificate=&amp;amp;lt;fingerprint&amp;amp;gt;]
winscp.exe [mysession] [/passive[=on|off]] [/implicit|explicit] winscp.exe [mysession] [/passive[=on|off]] [/implicit|explicit]
-winscp.exe [mysession] [/timeout=<sec>]+winscp.exe [mysession] [/timeout=&amp;amp;lt;sec&amp;amp;gt;]
winscp.exe [mysession] [/rawsettings setting1=value1 setting2=value2 ...] winscp.exe [mysession] [/rawsettings setting1=value1 setting2=value2 ...]
-winscp.exe [/console] [/script=<script_file>] [/command command1 command2 ...]+winscp.exe [/console] [/script=&amp;amp;lt;script_file&amp;amp;gt;] [/command command1 command2 ...]
          [/parameter // param1 ...]           [/parameter // param1 ...]
-winscp.exe [/log=<logfile>  [/loglevel=<level>] [/logsize=[<count>*]<size>]] +winscp.exe [/log=&amp;amp;lt;logfile&amp;amp;gt;  [/loglevel=&amp;amp;lt;level&amp;amp;gt;] [/logsize=[&amp;amp;lt;count&amp;amp;gt;*]&amp;amp;lt;size&amp;amp;gt;]] 
-          [/xmllog=<logfile> [/xmlgroups]] +          [/xmllog=&amp;amp;lt;logfile&amp;amp;gt; [/xmlgroups]] 
-winscp.exe [/ini=<inifile>]+winscp.exe [/ini=&amp;amp;lt;inifile&amp;amp;gt;]
winscp.exe [/rawconfig config1=value1 config2=value2 ...] winscp.exe [/rawconfig config1=value1 config2=value2 ...]
winscp.exe [/rawtransfersettings setting1=value1 setting2=value2 ...] winscp.exe [/rawtransfersettings setting1=value1 setting2=value2 ...]
-winscp.exe /batchsettings <site_mask> setting1=value1 setting2=value2 ... +winscp.exe /batchsettings &amp;amp;lt;site_mask&amp;amp;gt; setting1=value1 setting2=value2 ... 
-winscp.exe /keygen keyfile [/output=<file>] [/changepassphrase] +winscp.exe /keygen keyfile [/output=&amp;amp;lt;file&amp;amp;gt;] [/changepassphrase] 
-winscp.exe /keygen keyfile [/comment=<text>] [/certificate=<file>]+winscp.exe /keygen keyfile [/comment=&amp;amp;lt;text&amp;amp;gt;] [/certificate=&amp;amp;lt;file&amp;amp;gt;]
winscp.exe /update winscp.exe /update
winscp.exe /info winscp.exe /info
winscp.exe /help winscp.exe /help
-</code>+&amp;amp;lt;/code&amp;amp;gt;
Parameters for ''[[executables|winscp.com]]'' executable: Parameters for ''[[executables|winscp.com]]'' executable:
-<code batch>+&amp;amp;lt;code batch&amp;amp;gt;
winscp.com [/script=script_file] [/command command1 command2 ...] winscp.com [/script=script_file] [/command command1 command2 ...]
          [/parameter // param1 ...]           [/parameter // param1 ...]
winscp.com [/stdout[=binary|chunked]] [/stdin] winscp.com [/stdout[=binary|chunked]] [/stdin]
-winscp.com [/log=<logfile> [/loglevel=<level>] [/logsize=[<count>*]<size>]] +winscp.com [/log=&amp;amp;lt;logfile&amp;amp;gt; [/loglevel=&amp;amp;lt;level&amp;amp;gt;] [/logsize=[&amp;amp;lt;count&amp;amp;gt;*]&amp;amp;lt;size&amp;amp;gt;]] 
-          [/xmllog=<logfile> [/xmlgroups]] [/nointeractiveinput] +          [/xmllog=&amp;amp;lt;logfile&amp;amp;gt; [/xmlgroups]] [/nointeractiveinput] 
-winscp.com [/ini=<inifile>]+winscp.com [/ini=&amp;amp;lt;inifile&amp;amp;gt;]
winscp.com [/rawconfig config1=value1 config2=value2 ...] winscp.com [/rawconfig config1=value1 config2=value2 ...]
-winscp.com /batchsettings <site_mask> setting1=value1 setting2=value2 ... +winscp.com /batchsettings &amp;amp;lt;site_mask&amp;amp;gt; setting1=value1 setting2=value2 ... 
-winscp.com /keygen keyfile [/output=<file>] [/changepassphrase] +winscp.com /keygen keyfile [/output=&amp;amp;lt;file&amp;amp;gt;] [/changepassphrase] 
-winscp.com /keygen keyfile [/comment=<text>] [/certificate=<file>]+winscp.com /keygen keyfile [/comment=&amp;amp;lt;text&amp;amp;gt;] [/certificate=&amp;amp;lt;file&amp;amp;gt;]
winscp.com /info winscp.com /info
winscp.com /help winscp.com /help
-</code>+&amp;amp;lt;/code&amp;amp;gt;
==== [[session]] Session ==== ==== [[session]] Session ====
-The first syntax opens the [[session_configuration#site|site]]. To open site, stored in folder, use path syntax &amp;quot;folder/site&amp;quot;. You can also open [[workspace|workspace]] or all sites in site folder.+The first syntax opens the [[session_configuration#site|site]]. To open site, stored in folder, use path syntax "folder/site". You can also open [[workspace|workspace]] or all sites in site folder.
The second creates the session specified by [[session_url|session URL]] and optionally by initial remote path. If the remote path is not ended by slash (''/''), it is treated as path to file (or even directory) that should be [[task_download#url|downloaded]]. The second creates the session specified by [[session_url|session URL]] and optionally by initial remote path. If the remote path is not ended by slash (''/''), it is treated as path to file (or even directory) that should be [[task_download#url|downloaded]].
Line 62: Line 64:
The parameter ''/==sessionname=='' specifies a custom name of the session to be used instead of the automatically generated name in a format ''username@hostname'' or to override the name of the saved site. The parameter ''/==sessionname=='' specifies a custom name of the session to be used instead of the automatically generated name in a format ''username@hostname'' or to override the name of the saved site.
-If there's already an idle WinSCP instance running, the session(s) opens in the existing instance. To force the session to open in a new instance of WinSCP, use ''/==newinstance=='' parameter.+If there's already an idle WinSCP instance running, the session(s) opens in the existing instance. To force the session to open in a new instance of WinSCP, use ''/==newinstance=='' parameter. If no session is specified on command-line, [[ui_login|Login dialog]] opens to select one.
The parameter ''/==privatekey=='' specifies a [[local_path|local path]] to an [[public_key#private|SSH private key file]]. If the key file is encrypted, use the ''/passphrase'' to specify its passphrase. The passphrase [[#passwordsfromfiles|can be read from a file]]. The parameter ''/==privatekey=='' specifies a [[local_path|local path]] to an [[public_key#private|SSH private key file]]. If the key file is encrypted, use the ''/passphrase'' to specify its passphrase. The passphrase [[#passwordsfromfiles|can be read from a file]].
Line 88: Line 90:
Examples: Examples:
-&amp;lt;code batch&amp;gt; +<code batch> 
-winscp.exe &amp;quot;My site&amp;quot; +winscp.exe "My site" 
-winscp.exe sftp://martin:password@example.com/ /hostkey=&amp;quot;ssh-rsa 2048 xxxxxxxxxxx...&amp;quot;+winscp.exe sftp://martin:password@example.com/ /hostkey="ssh-rsa 2048 xxxxxxxxxxx..."
winscp.exe scp://test@example.com:2222/ /privatekey=mykey.ppk winscp.exe scp://test@example.com:2222/ /privatekey=mykey.ppk
winscp.exe ftps://martin:password@example.com/ winscp.exe ftps://martin:password@example.com/
-&amp;lt;/code&amp;gt;+</code>
==== [[logging]] Logging ==== ==== [[logging]] Logging ====

Last modified: by 104.28.236.107