emscli execute ftp
copies files to/from a remote host using the FTP service
Synopsis
execute ftp attempts to copy files to or from a remote host using the FTP service.
If copying from a remote host to the local machine, include the --read flag; if copying from the local machine to a remote host, do not include the flag.
Also include:
- the local filepath (or local destination for a remote file) to the
--local.fileflag; - the remote filepath (or remote destination for a local file) to the
--remote.fileflag, and - any other --remote flags required to connect.
emscli execute ftp [flags]
Options
-h, --help help for ftp
--local.file string The /path/filename of the file to be copied (or destination of the file to be saved) on the local host
--read Specifies that this command is to read a file from the remote host (rather than copy from)
--remote.file string The /path/filename of the file to be copied (or destination of the file to be saved) on the remote host. The file location is relative to the FTP root folder
--remote.ip string The IP of the remote host where the file will be copied to/from
--remote.password string The password for the remote user that will be used to connect to the remote host
--remote.port int The port to be used by the remote read service. [default: 21]
--remote.user string The user that will be used to connect to the remote host
See also
- emscli execute - for executing commands on the host
- emscli execute scp - copies files to/from a remote host using the SCP service
- emscli execute sftp - copies files to/from a remote host using the SFTP service