Console commands for the application

The /bffc file allows you to execute certain commands for the application:

Running database migrations

php bffc migrations/create -t 1.0.0

php bffc migrations/migrate -t 2.4.0
php bffc migrations/migrate -x plugin/name -t 2.4.0
php bffc migrations/migrate -x theme/name -t 2.4.0

php bffc migrations/rollback -t 1.0.0
php bffc migrations/rollback -x plugin/name -t 1.0.0
php bffc migrations/rollback -x theme/name -t 1.0.0

For more information on working with migrations, please refer to the section "Database / Migrations"

Running unit tests for extensions

php bffc tests/unit -x plugin/name
php bffc tests/unit -x plugin/name -t testName
php bffc tests/unit -x theme/name
php bffc tests/unit -x theme/name -t testName

Initializing extension modules

php bffc extensions/moduleInit -x plugin/name --name=moduleName
php bffc extensions/moduleInit -x theme/name --name=moduleName