astappiev/wp-sync-cli

A WP-CLI command to sync dev and production WordPress sites.

v0.0.2 2025-06-09 19:32 UTC

This package is auto-updated.

Last update: 2025-06-09 19:32:46 UTC


README

A WP-CLI command to sync dev and production WordPress sites.

Installation

To install the plugin:

composer require astappiev/wp-sync-cli

Using

Create a file named wp-cli.yml WordPress directory and add remote environment there:

@production:
  ssh: reiki@school.silkwayreiki.com
  path: /home/reiki/learn/

Run wp pull from the project root. production environment will be used by default, you can specify another environment by passing its name as first argument.

wp pull [env_name] [--backup_dir] [--plugins_activate] [--plugins_deactivate] [--upload_dir] [--exclude_dirs]