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

can we set settings over wp-cli? #307

Open
osevan opened this issue Jun 28, 2023 · 3 comments
Open

can we set settings over wp-cli? #307

osevan opened this issue Jun 28, 2023 · 3 comments

Comments

@osevan
Copy link

osevan commented Jun 28, 2023

We should set settings easy without dashboard login for nginx-helper, especially, when you have several sites.

Which tables should i edit to fix this manually with sql update command?

Because wp-cli settings integration isnt possible for now.

Thanks and

Best regards

@osevan osevan changed the title can we set settings ovet wp-xli? can we set settings over wp-xli? Jun 28, 2023
@osevan osevan changed the title can we set settings over wp-xli? can we set settings over wp-cli? Jun 28, 2023
@sistason
Copy link

I think you mean how can we initially set the default settings? Because wp option patch update rt_wp_nginx_helper_options enable_purge 1 is working fine with wp-cli.

But until you set the default settings, which seems to only be possible by clicking a setting (and therefore merging it with the defaults), the db (and therefore wp-cli) is emtpy.

My solution would be to write the default settings to the options table when activating the plugin. Can this be a feature for the future?

@osevan
Copy link
Author

osevan commented Nov 6, 2023

I think you mean how can we initially set the default settings? Because wp option patch update rt_wp_nginx_helper_options enable_purge 1 is working fine with wp-cli.

But until you set the default settings, which seems to only be possible by clicking a setting (and therefore merging it with the defaults), the db (and therefore wp-cli) is emtpy.

My solution would be to write the default settings to the options table when activating the plugin. Can this be a feature for the future?

Yes. I hope new feature for wp-cli for settings setting over command line could be available soon, for full automized settings setup.

@osevan
Copy link
Author

osevan commented Dec 9, 2023

Any information about this?

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