Drush

De MochilaWiki

Instalando

apt-get install curl php php-xml
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
composer global require drush/drush:8.2.1
export PATH="$HOME/.config/composer/vendor/bin:$PATH"
export PATH="$HOME/.composer/vendor/drush/drush:$PATH"
source ~/.bashrc

Baixando Drupal 7

drush dl drupal-7 --select


ajustando caminho do executável no bash

echo 'export PATH="$HOME/.config/composer/vendor/bin:$PATH"' >> ~/.bash_profile
echo 'export PATH="$HOME/.composer/vendor/drush/drush:$PATH"' >> ~/.bash_profile


Rascunho

composer require symfony/var-dumper
composer require drupal/devel:^2.0.0 --no-update
composer update
composer why symfony/var-dumper

Referências

I https://www.liquidweb.com/kb/install-drush-ubuntu-16-04/