Skip to main content

Managing Allowed Site Protocols

Enabling or Disabling FTP

Use this current snippet to see whether FTP is enabled for your site.

files-cli sites get --format csv --fields ftp_enabled

Update the setting using this CLI snippet. Replace NEW_VALUE with either true (to enable) or false (to disable):

files-cli sites update --ftp-enabled=NEW_VALUE

Enabling or Disabling SFTP

Use this snippet to see whether SFTP access is enabled for your site.

files-cli sites get --format csv --fields sftp_enabled

Update the setting using this CLI snippet. Replace NEW_VALUE with either true (to enable) or false (to disable):

files-cli sites update --sftp-enabled=NEW_VALUE