Each WinSCP component has its own command line options. These options can be see on the official page created especially for this purpose. In fact, there is a vast page with all kind of information related to command line availability and usage.
- WinSCP.exe command line support:
winscp.exe site|workspace|folder
winscp.exe [/path/[file]]
winscp.exe [mysession] [/newinstance]
winscp.exe [mysession] /edit
winscp.exe [mysession] /synchronize [local_directory] [remote_directory] [/defaults]
winscp.exe [mysession] /keepuptodate [local_directory] [remote_directory] [/defaults]
winscp.exe [mysession] /upload file1 file2 file3 ... [/defaults]
winscp.exe [mysession] [/privatekey=] [/hostkey=]
winscp.exe [mysession] [/passive[=on|off]] [/implicit|explicit]
winscp.exe [mysession] [/timeout=]
winscp.exe [mysession] [/rawsettings setting1=value1 setting2=value2 ...]
winscp.exe [/console] [/script=script_file] [/command command1 command2 ...] [/parameter // param1 ...]
winscp.exe [/log= [/loglevel=]] [/xmllog= [/xmlgroups]]
winscp.exe [/ini=]
winscp.exe [/rawconfig config1=value1 config2=value2 ...]
winscp.exe /batchsettings setting1=value1 setting2=value2 ...
winscp.exe /update
winscp.exe /help
- WinSCP.com command line support:
winscp.com [/script=script_file] [/command command1 command2 ...] [/parameter // param1 ...]
winscp.com [/log= [/loglevel=]] [/xmllog= [/xmlgroups]] [/nointeractiveinput]
winscp.exe [/ini=]
winscp.exe [/rawconfig config1=value1 config2=value2 ...]
winscp.com /help
More information can be found on the official website: https://winscp.net/eng/docs/commandline