drupal模块使用

drupalconsole和drush的区别

日期:2016-06-27 阅读:2234

dmandwp系统 - wordpress系统和DM系统区块建站>>

drupalconsole和drush的区别

Drupalconsole is a from the-ground-up Drupal CLI tool that leverages Symphony CLI components and modern PHP OOP design practices. Drush is a venerable Drupal CLI tool that has been around since Drupal 4.7, thus built with an older design practice.

There is overlap based on both projects being a general purpose Drupal administration CLI tool. Drush has more features, due to its age, but Drupal Console has some new features due to its more modern design.

It might help to read Ten things you need to know about Drupal Console coming from Ray Saltini of FFW (the company supporting the lead developer Jesus Olivas of Drupal Console), & Drush and the Drupal Console with Drupal 8 from Greg Anderson (one of the maintainers of Drush).

To explicitly answer the question, maybe. If you're wondering which should I use?, the answer is both for the time being. Perhaps Drupal Console will eclipse Drush, but right now both have useful feature sets for administering your Drupal site. 

from : http://drupal.stackexchange.com/questions/202075/does-drupal-console-aim-to-replace-drush

首先要明白什么是命令行工具。
在drupal7时,我也没有用过drush。
但最近学了下yii后,才明白这个工具的方便。其实就叫console
用yii的gii就可以生成一些代码。gii是可视化的命令行。

如果学laravel的话,也有命令工具,就是artisan 
比如用 php artisan migrate就能实现一些功能。

比如前端开发时,我们常用console.log。就是通过命令来做一些事情。
-----------
那么在drupal,也有这样的工具。
那就是drush,上面的英语文章就是说drush是个老牌的drupal命令行工具。
而drupalconsole是个新秀。
他们的比较,这里就不多说了,大家可以都试试。

 

<<点击返回