Setting the WordPress Version


With the recent release of 5.x.x I’ve noticed that new sites are currently using 5.x.x when we actually have some sites still using 4.x.x. I’m not sure how useful this would be, but at least now it would be really cool to be able to set the WordPress version and have it switch dynamically…


You can use below wpcli command to downgrade the WordPress version.

wp core update --version=4.9.8 --force


I think you need double quotes around the version number.