From 93c229948a36d48b81f45c6d81bdeafece52eea3 Mon Sep 17 00:00:00 2001 From: Ryan Carter Date: Fri, 19 Oct 2018 10:43:14 +0100 Subject: [PATCH] Update README.md Adds information on how to call the plugin through WP-CLI --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 6618001..1015d08 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,15 @@ # WP Sync DB CLI An addon for [WP Sync DB](https://github.com/slang800/wp-sync-db) that allows you to execute migrations using a function call or via WP-CLI + +The plugin is to be installed as a standard WordPress plugin, ensure you have wp-sync-db installed as well and have WP-CLI installed on your server. + +Firstly, you'll want to set up a profile for the sync. So go ahead in your WP backend and set up the migration in WP Sync DB. Save the profile. You can have multiple profiles if you'd like. + +Profiles are numerical, saved in order of how they're listed in the backend. + +Commands for WP-CLI are: + +```wp wpsdb migrate [profile-number]``` + +Example: +```wp wpsdb migrate 1```