Create FTP account in cPanel via terminal
You can create FTP account in cPanel via terminal using the following command. This uses cPanel API 2 Functions to create the FTP account.
cpapi2 --user=username Ftp addftp user=user pass=password
cpapi2 --user=grepitout Ftp addftp email@example.com pass=123password
Delete FTP account in cPanel via command line:
cpapi2 --user=username Ftp delftp user=user destroy=1
cpapi2 --user=grepitout Ftp delftp firstname.lastname@example.org destroy=1
List FTP account in cPanel via command line:
cpapi2 --user=username Ftp listftp
Don’t forget to replace the following:
username: The cPanel account Username.
user: The FTP account which you would like to create.
password: Desired password for the newly created FTP account.
Also Read: Create email account in cPanel via terminal
If you like this post and wish to receive more articles from us, please like our FB page: Button
Your suggestions and feedbacks will encourage us and help to improve further, please feel free to write your comments.
For more details on our services, please drop us an E-mail at email@example.com