Hi there,
How can we manage reading options ?
Is it possible to set up "home" page as front page instead of "blog page" ?
Thanks
Hi there,
You can read options with the wp option get command: http://wp-cli.org/commands/option/get/
Setting up home page as front could be dont with the wp option update command: http://wp-cli.org/commands/option/update/
You can set the page_on_front || show_on_front option by running the above in combination with that key and the page_id:
wp option update page_on_front 2
Or whatever page_id you want. You can find all available options per GUI op domain.com/wp-admin/options.php
You have to try which one to use page_on_frontorshow_on_front` can't remember it by heart.
Enjoy WP-CLI :)
Hi @jmslbam !
Thank for your quick answer.
I've search around wp option with no success so far but now that I get your point I'm good.
I didn't know we can find all available options per GUI op domain.com/wp-admin/options.php !
wp option list would be a good fearture to have I guess.
I whish I could build it but so far I don't know how to contribute.
May you have any tips for me to code for wp-cli I could give it a try...
Thanks again !
wp option list is available now. Someone implemented it as of this writing.
Most helpful comment
Hi there,
You can read options with the
wp option getcommand: http://wp-cli.org/commands/option/get/Setting up home page as front could be dont with the
wp option updatecommand: http://wp-cli.org/commands/option/update/You can set the
page_on_front||show_on_frontoption by running the above in combination with thatkeyand thepage_id:Or whatever
page_idyou want. You can find all available options per GUI opdomain.com/wp-admin/options.phpYou have to try which one to use page_on_front
orshow_on_front` can't remember it by heart.Enjoy WP-CLI :)