2020-01-05, 03:43 PM
Currently I am working on 2 set of CLI tools for MyBB, first one is a MyBB Installer, that easily allows downloading and extract the latest version of MyBB into a decided directory, second one is a CLI for your MyBB application, that will manage that specific application.
MyBB Installer
The MyBB Installer will become available for download using Composer:
After the installation, you can easily setup a new MyBB project using the cli tool:
Besides that the installer will by default add some recommended plugins and themes to the new MyBB application.
So far only the MyBB CLI plugin is added, but I would love to get recommendations for other plugins or themes to add by default.
Of cause this can be disabled with some command line flags.
MyBB CLI
The MyBB CLI will be a plugin for MyBB that empowers the MyBB application with command line tools to easier manage the application.
In the first version of the CLI, it will support running the MyBB installation script directly from the terminal instead of having to go over the installation manually.
This can be done like this:
Please share your ideas, thoughts and feedback for this.
MyBB Installer
The MyBB Installer will become available for download using Composer:
composer global require ulties/mybb-installer (coming soon, will post here when its released)
After the installation, you can easily setup a new MyBB project using the cli tool:
mybb new forum
Which will download the latest version of MyBB and extract its files to a new folder called "forum".Besides that the installer will by default add some recommended plugins and themes to the new MyBB application.
So far only the MyBB CLI plugin is added, but I would love to get recommendations for other plugins or themes to add by default.
Of cause this can be disabled with some command line flags.
MyBB CLI
The MyBB CLI will be a plugin for MyBB that empowers the MyBB application with command line tools to easier manage the application.
In the first version of the CLI, it will support running the MyBB installation script directly from the terminal instead of having to go over the installation manually.
This can be done like this:
cli install --db-engine=mysqli --db-host=mysql-host.my-site.com:1234 --db-user=mark --db-pass=secret --db-name=mybb --db-encoding=utf8 --db-prefix=mybb_ --forum-name="My Forum" --forum-url=http://mybbresources.com --website-name="My Site" --website-url="http://mybbresources.com" --cookie-domain=".mybbresources.com" --cookie-path="/" --contact-email="[email protected]" --admin-pin=1234 --admin-user=mark --admin-pass=secret [email protected]
The default values for the options are listed below:--db-engine: mysqli
--db-host: localhost
--db-user: root
--db-pass: (EMPTY)
--db-name: mybb
--db-encoding: utf8
--db-prefix: mybb_
--forum-name: Forums
--forum-url: (NOT DECIDED YET - IF ANY)
--website-name: Your Website
--website-url: (NOT DECIDED YET - IF ANY)
--cookie-domain: (NOT DECIDED YET - IF ANY)
--cookie-path: /
--contact-email: (NOT DECIDED YET - IF ANY)
--admin-pin: (EMPTY)
--admin-user: admin
--admin-pass: secret
--admin-email: (NOT DECIDED YET - IF ANY)
Please share your ideas, thoughts and feedback for this.