How do i install varbase via command line, following command throws fatal error: missing Bootstrap class

drupal site:install varbase --langcode="en" --db-type="mysql" --db-host="127.0.0.1" --db-name="xxx" --db-user="xxxx" --db-pass="xxxx" --db-port="3306" --site-name="Sina Salek Official Site" --site-mail="xxxx" --account-name="admin" --account-mail="xxxx" --account-pass="xxxx" --no-interaction

Comments

sinasalek created an issue. See original summary.

rajab natshah’s picture

Issue tags: +drush, +varbase, +installation

Sina, you could follow the following command.

Are you trying to install with Drupal Console or Drush?

## Install with drush.

drush site-install varbase --yes --site-name='Test Varbase4c' --account-name=webmaster --account-pass=dD.123123ddd --account-mail=webmaster@vardot.com --db-url="mysql://root:@localhost/test_varbase4c" varbase_multilingual_configuration.enable_multilingual=true varbase_extra_components.vmi=true varbase_extra_components.varbase_heroslider_media=true varbase_extra_components.varbase_carousels=true varbase_extra_components.varbase_search=true varbase_development_tools.varbase_development=true

We do have this command for our installing and testing varbase on travis-ci.org
https://github.com/Vardot/varbase/blob/8.x-4.x/.travis.yml
https://travis-ci.org/Vardot/varbase/builds

If you had created the project with composer
composer create-project Vardot/varbase-project:^8.4.14 PROJECT_DIR_NAME --no-interaction
you will need to change directory to docroot

sinasalek’s picture

Thanks exactly what i was looking tx. How can i set installation options like enabled languages?

rajab natshah’s picture

Status: Active » Fixed

Hi Sina,
Good :)

If you look at varbase_extra_components.varbase_search=true for example
It is [machine name for the installation step].[machine name for the input element].[value to set for the element]

You could find more info at the Drush commands site.
https://drushcommands.com/drush-8x/core/site-install/

rajab natshah’s picture

Status: Fixed » Closed (fixed)