lftp

Sophisticated file transfer program with FTP, SFTP, and HTTP support

brewmacoslinux
Try with needOr install directly
Source

About

Sophisticated file transfer program

Commands

lftp

Examples

Connect to an FTP server$ lftp -u username,password ftp.example.com
Mirror a remote directory locally$ lftp -u username,password -e 'mirror /remote/path /local/path; quit' ftp.example.com
Upload files recursively to SFTP server$ lftp -u username,password sftp://sftp.example.com -e 'mirror -R /local/path /remote/path; quit'