*Please do not clone BLT as a means of using it. The only reason to clone BLT is to contribute to it.
You must have the following tools on the command line of your host operating system:
Instructions for installing all requirements are listed below.
Ensure that Xcode is installed. On OSX 10.9+ you can install Xcode with:
sudo xcodebuild -license
xcode-select --install
Then install the minimum dependencies for BLT. The preferred method is via Homebrew, though you could install these yourself without a package manager.
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew tap homebrew/dupes; brew tap homebrew/versions; brew tap homebrew/homebrew-php;
brew install php56 git composer drush
composer global require "hirak/prestissimo:^0.3"
If you'd like to create a Drupal VM with BLT, you will require the following additional libraries. If you'd like to use a LAMP stack other than Drupal VM, see Local Development.
brew tap caskroom/cask
brew cask install virtualbox vagrant
vagrant plugin install vagrant-hostsupdater
The minimum required versions are VirtualBox 5.1.x and Vagrant 1.8.6. Ansible is not a requirement, but if you have it installed on your host machine it must be at least version 2.2.
The local PHP environment should also have a memory limit of at least 2G for BLT to initialize. You can modify your PHP CLI's memory limit by editing php.ini. You can use the following command to open the correct php.ini in TextEdit. Set memory_limit = 2G
.
open -a TextEdit $(php -i | grep "Loaded Configuration File" | cut -d" " -f 5)
If you'd like to execute Behat tests from the host machine, you will need Java:
brew cask install java
brew install chromedriver
BLT ships with the Cog Base Theme by default. Cog uses npm to install front end tools. If you intend to use Cog, you should also install the following tools:
brew install npm nvm
Windows is currently supported only when using the Bash on Ubuntu on Windows feature available in the latest version of Windows 10.
Pre-requisite requirements:
- You must be running a 64-bit version of Windows 10 Anniversary update (build 14393 or later)
- Access to a local account with administrative rights for initial install
Follow the official installation guide.
Note you must create a UNIX username with a password when prompted at the final step in the process. Certain BLT commands will not function correctly if you install with a passwordless root account.
Once complete follow the BLT on Windows installation instructions.
If you are using a Linux machine, it is assumed that you will not be using Drupal VM and that you will be configuring your own LAMP stack. Disregard the blt vm
command and @[project.machine_name]
references in subsequent documentation.
apt-get install git composer drush
composer global require "hirak/prestissimo:^0.3"
dnf install git composer drush
composer global require "hirak/prestissimo:^0.3"
Choose your own adventure: