Drupal

  • 查看pm指令
drush | grep pm
drush | grep user-
drush | grep role-
  • 下载
drush pmi pathauto
  • 查看指定
drush pmi pathauto
  • 选择下载版本
drush dl pathauto --select
  • 启用指定模块
drush en pathauto -y
 drush en flag
  • 禁用模块
drush dis overlay
  • 卸载模块
  • 升级
 drush pm-updatestatus

drush up drupal
drush up pathauto -y
  • 创建用户
drush user-create hikaru --mail="[email protected]" --password="123456"

drush user-block hikaru# 阻止登陆
drush user-unblock hikaru #取消阻止
 drush user-cancel hikaru #删除用户
  drush ucrt hikaru --mail="[email protected]"#创建用户简写
drush user-login hikaru #生成url图形化操作
drush user-password hikaru --password="123456" #修改密码
drush rls #查看所有角色

drush role-create member #创建角色
 drush role-delete member #删除角色
drush role-add-perm author --module=node#添加角色权限
drush user-add-role author hikaru
rush user-information hikaru
  • 备份
drush archive-dump 

  • 安装所需模块
drush dl ctools
drush dl views
drush en views views_ui -y
drush dl rules
drush en rules rules_admin -y
drush dl flag
drush en flag -y
drush dl token
drush en token -y
drush dl  pathauto
drush en pathauto -y
drush dl jquery_update --select
drush en jquery_update -y
drush dl libraries
drush en libraries -y
drush dl module_filter
drush en module_filter -y

drush dl l10n_update --select #翻译
drush en l10n_update -y

drush l10n-update-refresh
drush l10n-update
drush l10n-update-status

drush dl adminimal_theme --select #安装主题
drush en adminimal -y
drush vset admin_theme adminimal

drush dis toolbar -y
drush en navbar -y

你可能感兴趣的:(Drupal)