Upload the current directory to a folder on your FTP server via a simple TUI.
Run ftp-push from any local folder. It connects to your FTP server, lets you pick a remote destination with fzf, and mirrors the directory using lftp.
git clone https://github.com/ffabbr/ftp-push.git
cd ftp-push
./install.shThis copies bin/ftp-push to ~/.local/bin/. Make sure that directory is on your PATH.
ftp-push reads its config from ~/.config/wp-local-push/config. The config file should define:
LFTP_BOOKMARK="your-lftp-bookmark"
REMOTE_WP_ROOT="/"Set up an lftp bookmark with your FTP credentials:
lftp -e "bookmark add myserver ftp://user@host; quit"ftp-push # upload current directory (select remote folder interactively)
ftp-push --delete # mirror with deletion of extra remote files
ftp-push --dry-run # preview what would be uploaded
ftp-push doctor # check dependencies and connectionMIT