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 empty 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.resume, r
: resume the transfer.newer, n
: overwrite if source is newer than destination.size, z
: overwrite if file sizes are different.size_newer, w
: overwrite if source is newer or sizes are different.
Upload multiple files
To upload multiple files use the mput
command:
mput [options] <local files> [<remote path>]
local files
is an expression to select which files are uploaded. See Regular Expressions for the regular expression syntax and Wildcards for the wildcard 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.resume, r
: resume the transfer.newer, n
: overwrite if source is newer than destination.size, z
: overwrite if file sizes are different.size_newer, w
: overwrite if source is newer or sizes are different.
--exclude
: exclusion condition. Files matching the condition are ignored. See Filter Files and Directories.
--match
: exclusion condition match type. See Filter Files and Directories.
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 empty 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.resume, r
: resume the transfer.newer, n
: overwrite if source is newer than destination.size, z
: overwrite if file sizes are different.size_newer, w
: overwrite if source is newer or sizes are different.
--filter, -f
: is an expression to select which files are uploaded. See Regular Expressions for the regular expression syntax and Wildcards for the wildcard syntax.
--flatten
: flatten the directory structure on remote side.
--exclude
: exclusion condition. Files matching the condition are ignored. See Filter Files and Directories.
--match
: exclusion condition match type. See Filter Files and Directories.
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 see 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.resume, r
: resume the transfernewer, n
: overwrite if source is newer than destination.size, z
: overwrite if file sizes are different.size_newer, w
: overwrite if source is newer or sizes are different
Download multiple files
To download multiple files use the mget
command:
mget [options] <remote files> [<local path>]
remote files
is an expression to select which files are downloaded. See Regular Expressions for the regular expression syntax andWildcards for the wildcard 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.resume, r
: resume the transfernewer, n
: overwrite if source is newer than destination.
size, z
: overwrite if file sizes are different.size_newer, w
: overwrite if source is newer or sizes are different
--exclude
: exclusion condition. Files matching the condition are ignored. See Filter Files and Directories.
--match
: exclusion condition match type. See Filter Files and Directories.
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 empty 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.resume, r
: resume the transfernewer, n
: overwrite if source is newer than destination.size, z
: overwrite if file sizes are different.size_newer, w
: overwrite if source is newer or sizes are different.
--filter, -f
: is an expression to select which files are downloaded. See Regular Expressions for the regular expression syntax and Wildcards for the wildcard syntax.
--flatten
: flatten the directory structure on local side.
--exclude
: exclusion condition. Files matching the condition are ignored. See Filter Files and Directories.
--match
: exclusion condition match type. See Filter Files and Directories.
The video tutorial below shows how to transfer files with FileZilla Pro CLI.