Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use wp-sync-db-cli to import wp-sync-db settings #2

Open
pietervanh opened this issue Aug 8, 2015 · 1 comment
Open

use wp-sync-db-cli to import wp-sync-db settings #2

pietervanh opened this issue Aug 8, 2015 · 1 comment

Comments

@pietervanh
Copy link

Would it be possible to extend wp-sync-db-cli to set the wp-sync-db settings.
For example you start from blank wordpress.
Install and activate wp-sync-db , wp-sync-db-media-files, wp-sync-db-cli with wp-cli.
Then set wp-sync-db settings with wp-sync-db-cli then run a wp-sync-db-cli pull.

@tmuka
Copy link

tmuka commented Sep 29, 2016

i found a way to do this by exporting the settings from a working local site that can already sync pull.
wp option get wpsdb_settings --format=json --skip-plugins

then once you have that json string, use this
wp option set wpsdb_settings --skip-plugins --format=json $CONTENTS"_OF_JSON_STRING_IN_QUOTES

you could probably also just modify the json the first time if you know the settings you want
hope this helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants