Here are some helpful options when using FTP at the command line interface:
Connecting to a server
sftp user@domain
To use a different port
sftp -oPort=999 user@domain
Uploading a file
put file.ext
Downloading a file
get file.ext
Uploading multiple files
mput *.php
Downloading multiple files
mget *.php
Delete a file
delete file.ext
Delete a directory
rmdir dir
Exit
quit