How do I use FTP via the command line to download all files?
The curl program could help you download an FTP file, but it specializes in one-off URLs (http, ftp, etc). It is possible to use Perl to script something up to list then download, but its much easier to use wget! 

However, wget is not a standard program of OSX so you will need to manually download, compile, and install it (relatively easy task, as long as you have Xcode installed.)


Install Xcode from the App Store.
Download wget source
Open a Terminal into the directory you saved the source.


Run the following commands:

    $ tar xfvz wget-latest.tar.gz
    $ cd wget-*
    $ ./configure &amp;&amp; make


The wget binary will be produced in a src subdirectory. From here you can run the binary directly as ./src/wget or install into /usr/local/bin:

    $ sudo make install


Now, you only need to run wget -r  ftp://username:passwd@server/path/to/download and your FTP site will be recursively downloaded from that path!

Just remember that the /path/to/download is relative to the username you login with... and FTP passwords are notoriously unsecure :)