astappiev / wp-sync-cli
A WP-CLI command to sync dev and production WordPress sites.
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:wp-cli-package
Requires
- php: >=8.0
- wp-cli/wp-cli: ^2.12
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]