MyBB packages include a command-line interface (CLI), which provides various administrative tools.
Usage (from MyBB root directory):
$ bin/cli <command> [options] [arguments]
Invoke bin/cli to see available options and commands. Use bin/cli <command> --help to print help for the given command.
The interface supports Symfony Console global options.
Execution
The command-line interface is a PHP script contained in the bin/cli file, relative to the MyBB root directory (which includes folders like admin/, bin/ and cache/).
The CLI requires a PHP interpreter and installed Composer dependencies. A MyBB forum installation is not required to run the CLI.
- On Unix-like systems, you may need to make the script executable:
$ chmod +x bin/cliAnd invoke it directly:
$ ./bin/cli <command> - On Windows, you can invoke the CLI using the
phpcommand available on your system:> php bin/cli <command>
Commands
status
Returns a human-friendly description of the current installation state.
$ bin/cli status [--code]
Possible values:
- Not installed
- Configuration file with no working database connection
- Configuration file with valid credentials, no data in database
- Installed version … or newer
Options
--codeReturns the corresponding integer instead of a human-friendly string.
See also: