How to Transfer Files with FileZilla CLI

Upload

To upload a file use the put command:

    put [options] <local file> <remote file>

local file and remote file can refer to a file using either an absolute or a relative path.

If remote file is absent the name of the local file is used.

Options:

--exists, -e: action in case the remote file exists. Possible values:

    overwrite, o: overwrite the remote file.
    skip, s: the transfer does not take place.

Upload multiple files

To upload multiple files use the mput command:

    mput [options] <local files> [<remote path>]

local files is a regular expression to select which files are uploaded. See Regular Expressions
for the regular expression syntax.

remote path can refer to an absolute or a relative path.

If remote path is empty the current remote directory is used.

Options:

    --exists, -e: action in case the remote file exists. Possible values:

      overwrite, o: overwrites the remote file.
      skip, s: the transfer does not take place.

Upload a directory

To recursively upload a directory use the rput command:

    rput [options] <local path> <remote path>

local path and remote path can refer to either an absolute or a relative path.

If remote path is absent the current remote directory is used.

Options:

    --exists, -e: action in case the remote file exists. Possible values:

      overwrite, o: overwrite the remote file.
      skip, s: the transfer does not take place.

    --filter, -f: regular expression to filter which files are uploaded.
    --flatten: flatten the directory structure on remote side.

Download

To download a file use the get command:

    get [options] <remote file> <local file>

local file and remote file can refer to a file using either an absolute or a relative path.

If local file is absent the name of the remote file is used.

Options:

    --exists, -e: action in case the remote file exists. Possible values:

      overwrite, o: overwrite the local file.
      skip, s: the transfer does not take place.

Download multiple files

To download multiple files use the mget command:

    mget [options]<remote files> [<lotcal path>]

remote files is a regular expression to select which files are downloaded. See Regular Expressions
for the regular expression syntax.

local path can refer to an absolute or a relative path.

If local path is empty the current local directory is used.

Options:

    --exists, -e: action in case the local file exists. Possible values:

      overwrite, o: overwrites the remote file.
      skip, s: the transfer does not take place.

Download a directory

To recursively download a directory use the rget command:

    rget [options] <remote path> <local path>

local path and remote path can refer to either an absolute or a relative path.
If local path is absent the current local directory is used.

Options:

    --exists, -e: action in case the local file exists. Possible values:

      overwrite, o: overwrite the local file.
      skip, s: the transfer does not take place.

    --filter, -f: regular expression to filter which files are downloaded.
    --flatten: flatten the directory structure on local side.

The video tutorial below shows how to transfer files with FileZilla CLI.

Video tutorial: How to Transfer Files using FileZilla Command Line