This has been on my radar for some time now. There are many reasons why some kind of CLI system (mybbctl) would be useful for board administrators if it included installation, upgrade and maintenance tools. Personally I'm interested in the ability to rapidly automate the deployment of MyBB instances using Docker, which is something we've more or less accomplished already with the recently released Dockerfile and Docker Compose recipe for MyBB 1.8. The only issue is that automating version upgrades (or the entire install procedure) in the current form would be difficult or be a hacky solution at best.
I proposed something a little bit like this to Euan a few weeks back as a POC. Here's an example of how a fresh installation could work. I have not included all of the possible variables or command flag parameters:
I couldn't think of a good syntax for version upgrades, but you get the idea:
The question of whether mybbctl is a PHP script (which you would execute using the PHP CLI i.e. /usr/bin/php mybbctl) or an actual binary is not something I've yet considered. Feedback from other board owners with relevant sysadmin experience or anyone interested in automation in general would be greatly appreciated, thanks.
I proposed something a little bit like this to Euan a few weeks back as a POC. Here's an example of how a fresh installation could work. I have not included all of the possible variables or command flag parameters:
mybbctl install --destination /var/www/html \
--database-host localhost \
--database-user mybb \
--database-password p4ssw0rd \
--database mybb --database-prefix mybb_ \
--admin-user administrator --admin-password p4ssw0rd
I couldn't think of a good syntax for version upgrades, but you get the idea:
mybbctl upgrade --update-from 1812 --update-to 1813 --destination /var/www/html
The question of whether mybbctl is a PHP script (which you would execute using the PHP CLI i.e. /usr/bin/php mybbctl) or an actual binary is not something I've yet considered. Feedback from other board owners with relevant sysadmin experience or anyone interested in automation in general would be greatly appreciated, thanks.