Skip to content

Push changes to a WordPress plugin or theme from Local (WP) to server using SFTP from the command line.

License

Notifications You must be signed in to change notification settings

ffabbr/wp-local-push

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

WP Local Push

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.

Requirements

  • lftp
  • fzf

On macOS:

brew install lftp fzf

Install

Option A: clone repo + run installer

git clone https://github.com/ffabbr/local-wp-push.git
cd wp-local-push
./install.sh

If wp-local-push isn’t found after install, add this to ~/.zshrc:

export PATH="$HOME/.local/bin:$PATH"

First-time setup (wizard)

Run:

wp-local-push setup
  • Create a config file at ~/.config/wp-local-push/config
  • Add an FTP login entry to ~/.netrc
  • Create an lftp bookmark so you can connect via a short name

Push a theme or plugin

wp-local-push push

Optional:

  • --dry-run (show what would happen)
  • --delete (delete remote files not present locally, use carefully)

Troubleshooting

wp-local-push doctor

Security notes

  • Credentials are stored in ~/.netrc and that file is set to permission 600.

About

Push changes to a WordPress plugin or theme from Local (WP) to server using SFTP from the command line.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages