LoginSignup
2
2

More than 5 years have passed since last update.

Drupal のコンソールコマンド Drush を簡単にインストールする

Last updated at Posted at 2016-12-13

Drush

Drupal には Drush というコンソールコマンドが存在します。 WordPress でいうところの wp-cli に相当します。

インストール

色々なインストール方法が解説されていますが、 CentOS では以下の2行でインストール可能です。 Drush 8.1.7 がインストールされます。

yum install epel-release
yum install drush

epel-testing リポジトリを有効にすると Drush 8.1.8 がインストールされます。

yum install drush --enablerepo=epel-testing

Drupal Console

Drupal は 8 から Symfony を採用しているためか、 Symfony Console を利用した Drupal Console という Drush と似たものが登場したようです。

インストール

Composer

composer global require drupal/console:@stable

インストーラー

curl -Lo drupal https://drupalconsole.com/installer
chmod +x drupal && mv drupal /usr/local/bin/
2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2