Important
You can add Acquia BLT versions 12 and later to third-party Drupal distributions and existing applications. If you are using BLT 11, you must instead create a new project from scratch using the BLT project template: Creating a new project with Acquia BLT
docroot
directory.composer update
, and the dependencies don’t break your project.To add Acquia BLT to a pre-existing Drupal project:
At the command prompt, change to your existing project directory with the
cd
command.
Use the following commands to configure Composer’s minimum-stability
and prefer-stable
values:
composer config minimum-stability dev
composer config prefer-stable true
Using Composer, install Acquia BLT:
rm -rf vendor composer.lock
composer require acquia/blt:^12.0 --no-update
composer update
Acquia BLT will place new files in your project directory. Review all new and modified files and commit them to Git.
You can now run Acquia BLT commands using vendor/bin/blt
. To more easily
run Acquia BLT commands without having to specify the full binary path,
install the BLT Launcher.
Run blt doctor
to diagnose any potential remaining issues requiring
manual intervention.
For information about common instructions and how to begin using Acquia BLT, see Next steps with Acquia BLT.