CompleteFTP provides a command-line interface (CLI) that allows you to manage the server
configuration directly from the Windows command prompt or PowerShell. The CLI uses a
subcommand style similar to git and openssl.
The CLI is not enabled by default on Windows. To enable it, you must add the
--enable-admin-cli argument to the CompleteFTP Windows service's binary path.
To modify the service binary path:
sc qc CompleteFTP
BINARY_PATH_NAME valuesc config CompleteFTP binpath= "\"C:\Program Files\Complete FTP\server\CompleteFTPService.exe\" --enable-admin-cli"
Note: There must be a space after binpath=
sc stop CompleteFTP sc start CompleteFTP
Or use the Services management console (services.msc)
Once enabled, commands can be invoked via the CompleteFTP executable:
"C:\Program Files\Complete FTP\server\completeftp.exe" [command] [arguments]
For easier access, you can add the CompleteFTP server directory to your system PATH:
C:\Program Files\Complete FTP\server to the listAfter adding to PATH, you can simply use:
completeftp [command] [arguments]
Help is available for all commands via the -h option. To see all available
top-level commands:
completeftp -h
Most commands have subcommands. Help for these is also available via -h:
completeftp site -h completeftp user -h completeftp folder -h
The CLI provides access to CompleteFTP's entire configuration through a Configuration Object Model (COM). The main command categories are:
site - manage site configuration (protocols, certificates, etc.)server - manage server settingsfolder - manage virtual file system foldersuser - manage users and authenticationgroup - manage groupswebapp - manage web applicationsextension - manage extensions/plug-insnotification - manage email notificationstrigger - manage process triggersmonitor - manage monitoring settingslicense - manage licensing and activation
Properties can be viewed using the show subcommand:
completeftp site show default completeftp user show fred completeftp folder show /Home
Properties can be set using the set subcommand with property=value syntax:
completeftp user set fred sftpEnabled=true completeftp user set fred "fullName=Fred Singh"
For sensitive values like passwords, omit the value to enter it interactively:
completeftp user set fred password
Use add and remove subcommands to create or delete items:
completeftp user add newuser completeftp user remove olduser completeftp folder add /NewFolder --mapping "C:\Data\NewFolder"
Use the list subcommand to see available items:
completeftp user list completeftp site list completeftp folder list /
The -v (or --view) option opens an interactive tree viewer for
exploring the configuration structure:
completeftp site show -v completeftp user show fred -v
The viewer supports navigation using arrow keys, page keys, and mouse.
For complete documentation of all CLI commands and their options, see here
or use the -h option on any command. The CLI provides comprehensive built-in help for every command
and subcommand.