Tool used to push changes to a WordPress plugin or theme that have been made on a local (staging) copy using Local (WP) to the live server using SFTP. No need to move Finder windows around anymore.
lftpfzf
On macOS:
brew install lftp fzfgit clone https://github.com/ffabbr/local-wp-push.git
cd wp-local-push
./install.shIf wp-local-push isn’t found after install, add this to ~/.zshrc:
export PATH="$HOME/.local/bin:$PATH"Run:
wp-local-push setup- Create a config file at
~/.config/wp-local-push/config - Add an FTP login entry to
~/.netrc - Create an
lftpbookmark so you can connect via a short name
wp-local-push pushOptional:
--dry-run(show what would happen)--delete(delete remote files not present locally, use carefully)
wp-local-push doctor- Credentials are stored in
~/.netrcand that file is set to permission600.