Important
- You can add BLT versions 12 and later to third-party Drupal distributions and existing applications. Older versions of BLT are no longer supported and must not be used.
Prerequisites
- The Drupal root must be in a top-level
docroot
directory. - You must already use Composer to manage website dependencies. If you don’t, see Using Composer to manage Drupal website dependencies and change your project accordingly.
- Be sure your dependencies are up-to-date by executing the command:
composer update
, and the dependencies don’t break your project.
Procedure
To add BLT to a pre-existing Drupal project:
- At the command prompt, change to your existing project directory with the
cd
command. To configure Composer’s
minimum-stability
andprefer-stable
values, run:composer config minimum-stability dev composer config prefer-stable true
To install BLT by using Composer, run:
composer require acquia/blt:^13
Note
There might be conflicting Composer dependencies. You must review any Composer warnings or errors prior to continuing.
- Review all new and modified files and commit them to Git. BLT places new files in your project directory.
- Run BLT commands by using
vendor/bin/blt
. To run BLT commands without specifying 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 BLT, see Next steps with BLT.