跳转到主要内容
你行网

Main navigation

  • 首页
  • 文章
  • 教程
  • 视频
  • 下载
  • 社区
  • 网站导航
User account menu
  • 登录

面包屑

  1. 首页

drush 命令中英文对照使用说明

由 hrs, 9 八月, 2020

Execute a drush command. Run `drush help [command]` to view command-specific
help.  Run `drush topic` to read even more documentation.

执行清除命令。 运行`drush help [command]`以查看特定于命令的信息
救命。 运行`drush topic`以阅读更多文档。

Global options (see `drush topic core-global-options` for the full list):

全局选项(完整列表请参见`drush topic core-global-options`):
 -d, --debug                               Display even more information,       

                                        显示更多信息,
                                           including internal messages.    

                                             包括内部消息。

  
 -h, --help                                This help system.      

                                                  这个帮助系统。                  
 -n, --no                                  Assume 'no' as answer to all      

                                                 假设回答“否”
                                           prompts.          

                                        提示                  
 -r <path>, --root=<path>                  Drupal root directory to use        

                                                         使用的Drupal根目录

 

 
                                           (default: current directory).        

                                        (默认值:当前目录)。


 -s, --simulate                            Simulate all relevant actions (don't actually change the system).  
                                               模拟所有相关动作(请勿实际更改系统)。
 -l <http://example.com:8888>,             URI of the drupal site to use (only   --uri=<http://example.com:8888>  needed in multisite environments or when running on an alternate port).  

                                                              要使用的drupal站点的URI(仅在多站点环境中或在备用端口上运行时才需要--uri = <http://example.com:8888>)。
                                         
 -v, --verbose                             Display extra information about the command.    
                                                         显示有关命令的更多信息。           
 -y, --yes                                 Assume 'yes' as answer to all prompts.        
                                           假设``是''作为所有提示的答案。

Core Drush commands: (core)

drush 核心命令


 archive-dump (ard,    Backup your code, files, and database into a single      

                                将你的代码,文件和数据库打包成一个


 archive-backup, arb,  file.      

                             备份文件

                                             
 archive:dump)                                                                  
 archive-restore       Expand a site archive into a Drupal web site.  

                                  将站点存档扩展到Drupal网站         
 (arr,                                                                          
 archive:restore)                                                               
 core-cli (php,        Open an interactive shell on a Drupal site.      

                                    在Drupal网站上打开一个交互式shell。                                   
 core:cli)                                                                      
 core-config (conf,    Edit drushrc, site alias, and Drupal settings.php files. 

                                   编辑drushrc,网站别名和Drupal 配置文件
 config, core:config)                                                           
 core-cron (cron,  Run all cron hooks in all active modules for specified core:cron)  site.    
                     (cron,在指定的core:cron的所有活动模块中运行所有cron钩子)站点。                           
 core-execute (exec,   Execute a shell command. Usually used with a site alias.  execute,  core:execute)  
                      (exec,执行shell命令。通常与站点别名一起使用.execute,core:execute)                                              
                                                                 
 core-init (init,      Enrich the bash startup file with completion and         
 core:init)            aliases. Copy .drushrc file to ~/.drush                  
 core-quick-drupal     Download, install, serve and login to Drupal with        
 (qd, cutie,           minimal configuration and dependencies.                  
 core:quick:drupal)                                                             
 core-requirements     Provides information about things that may be wrong in   
 (status-report, rq,   your Drupal installation, if any.                        
 core:requirements)                                                             
 core-rsync (rsync,    Rsync the Drupal tree to/from another server using ssh.  
 core:rsync)                                                                    
 core-status (status,  Provides a birds-eye view of the current Drupal          
 st, core:status)      installation, if any.                                    
 core-topic (topic,    Read detailed documentation on a given topic.            
 core:topic)                                                                    
 do:sanitize           Performs database sanitization.                          
 (do-sanitize)                                                                  
 drupal-directory      Return the filesystem path for modules/themes and other  
 (dd,                  key folders.                                             
 drupal:directory)                                                              
 entity-updates        Apply pending entity schema updates.                     
 (entup,                                                                        
 entity:updates)                                                                
 help                  Print this help message. See `drush help help` for more  
                       options.                                                 
 image-derive (id,     Create an image derivative.                              
 image:derive)                                                                  
 image-flush (if,      Flush all derived images for a given style.              
 image:flush)                                                                   
 new-status                                                                     
 php-eval (eval, ev,   Evaluate arbitrary php code after bootstrapping Drupal   
 php:eval)             (if available).                                          
 php-script (scr,      Run php script(s).                                       
 php:script)                                                                    
 queue-list            Returns a list of all defined queues                     
 queue-run             Run a specific queue by name                             
 (queue:run)                                                                    
 sanitize:comments     Sanitizes comments_field_data table.                     
 (sanitize-comments)                                                            
 sanitize:sessions     Truncates the session table.                             
 (sanitize-sessions)                                                            
 sanitize:table-colum  Replaces all values in given table column with the       
 n                     specified value.                                         
 (sanitize-table-colu                                                           
 mn)                                                                            
 sanitize:user-fields  Sanitize string fields associated with the user.         
 (sanitize-user-field                                                           
 s)                                                                             
 shell-alias (sha,     Print all known shell alias records.                     
 shell:alias)                                                                   
 site-alias (sa,       Print site alias records for all known site aliases and  
 site:alias)           local sites.                                             
 site-install (si,     Install Drupal along with modules/themes/configuration   
 site:install)         using the specified install profile.                     
 site-set (use,        Set a site alias to work on that will persist for the    
 site:set)             current session.                                         
 site-ssh (ssh,        Connect to a Drupal site's server via SSH for an         
 site:ssh)             interactive session or to run a shell command            
 sql-sanitize          Run sanitization operations on the current database.     
 (sqlsan)                                                                       
 twig-compile (twigc,  Compile all Twig template(s).                            
 twig:compile)                                                                  
 updatedb (updb)       Apply any database updates required (as with running     
                       update.php).                                             
 updatedb-status       List any pending database updates.                       
 (updbst,                                                                       
 updatedb:status)                                                               
 variable-delete       Delete a variable.                                       
 (vdel,                                                                         
 variable:delete)                                                               
 variable-get (vget,   Get a list of some or all site variables and values.     
 variable:get)                                                                  
 variable-set (vset,   Set a variable.                                          
 variable:set)                                                                  
 version               Show drush version.  

                             显示drush 版本信息                                   
 wrap:table-name       Wraps a table name in brackets if a database prefix is   
 (wrap-table-name)     being used.
Cache commands: (cache)
 cache-clear (cc,    Clear a specific cache, or all drupal caches.     
 cache:clear)                                                          
 cache-get (cg,      Fetch a cached object and display it.             
 cache:get)                                                            
 cache-rebuild (cr,  Rebuild a Drupal 8 site and clear all its caches. 
 rebuild,                                                              
 cache:rebuild)                                                        
 cache-set (cs,      Cache an object expressed in JSON or var_export() 
 cache:set)          format.
Config commands: (config)
 config-delete (cdel,  Delete a configuration object.                           
 config:delete)                                                                 
 config-edit (cedit,   Open a config file in a text editor. Edits are imported  
 config:edit)          into active configuration after closing editor.          
 config-export (cex,   Export configuration to a directory.                     
 config:export)                                                                 
 config-get (cget,     Display a config value, or a whole configuration object. 
 config:get)                                                                    
 config-import (cim,   Import config from a config directory.                   
 config:import)                                                                 
 config-list (cli,     List config names by prefix.                             
 config:list)                                                                   
 config-pull (cpull,   Export and transfer config from one environment to       
 config:pull)          another.                                                 
 config-set (cset,     Set config value directly. Does not perform a config     
 config:set)           import.
Field commands: (field)
 field-clone           Clone a field and all its instances.                     
 (field:clone)                                                                  
 field-create          Create fields and instances. Returns urls for field      
 (field:create)        editing.                                                 
 field-delete          Delete a field and its instances.                        
 (field:delete)                                                                 
 field-info            View information about fields, field_types, and widgets. 
 field-update          Return URL for field editing web page.                   
 (field:update)
Make commands: (make)
 make                  Turns a makefile into a working Drupal codebase.        
 make-convert          Convert a legacy makefile into another format. Defaults 
                       to converting .make => .make.yml.                       
 make-generate         Generate a makefile from the current Drupal site.       
 (generate-makefile)                                                           
 make-lock             Process a makefile and outputs an equivalent makefile   
                       with projects version *resolved*. Respects pinned       
                       versions.                                               
 make-update           Process a makefile and outputs an equivalent makefile   
                       with projects version resolved to latest available.
Project manager commands: (pm)
 pm-disable (dis,     Disable one or more extensions (modules or themes).     
 pm:disable)                                                                  
 pm-download (dl,     Download projects from drupal.org or other sources.     
 pm:download)                                                                 
 pm-enable (en,       Enable one or more extensions (modules or themes).      
 pm:enable)                                                                   
 pm-info (pmi,        Show detailed info for one or more extensions (modules  
 pm:info)             or themes).                                             
 pm-list (pml,        Show a list of available extensions (modules and        
 pm:list)             themes).                                                
 pm-projectinfo       Show a report of available projects and their           
 (pmpi,               extensions.                                             
 pm:projectinfo)                                                              
 pm-refresh (rf,      Refresh update status information.                      
 pm:refresh)                                                                  
 pm-releasenotes      Print release notes for given projects.                 
 (rln,                                                                        
 pm:releasenotes)                                                             
 pm-releases (rl,     Print release information for given projects.           
 pm:releases)                                                                 
 pm-uninstall (pmu,   Uninstall one or more modules and their dependent       
 pm:uninstall)        modules.                                                
 pm-update (up,       Update Drupal core and contrib projects and apply any   
 pm:update)           pending database updates (Same as pm-updatecode +       
                      updatedb).                                              
 pm-updatecode (upc,  Update Drupal core and contrib projects to latest       
 pm:updatecode)       recommended releases.                                   
 pm-updatestatus      Show a report of available minor updates to Drupal core 
 (ups,                and contrib projects.                                   
 pm:updatestatus)
Role commands: (role)
 role-add-perm (rap,  Grant specified permission(s) to a role.                 
 role:add:perm)                                                                
 role-create (rcrt,   Create a new role.                                       
 role:create)                                                                  
 role-delete (rdel,   Delete a role.                                           
 role:delete)                                                                  
 role-list (rls,      Display a list of all roles defined on the system.  If a 
 role:list)           role name is provided as an argument, then all of the    
                      permissions of that role will be listed.  If a           
                      permission name is provided as an option, then all of    
                      the roles that have been granted that permission will be 
                      listed.                                                  
 role-remove-perm     Remove specified permission(s) from a role.              
 (rmp,                                                                         
 role:remove:perm)
Runserver commands: (runserver)
 runserver (rs)        Runs PHP's built-in http server for development.
SQL commands: (sql)
 sql-cli (sqlc,        Open a SQL command-line interface using Drupal's     
 sql:cli)              credentials.                                         
 sql-connect           A string for connecting to the DB.                   
 (sql:connect)                                                              
 sql-create            Create a database.                                   
 (sql:create)                                                               
 sql-drop (sql:drop)   Drop all tables in a given database.                 
 sql-dump (sql:dump)   Exports the Drupal DB as SQL using mysqldump or      
                       equivalent.                                          
 sql-query (sqlq,      Execute a query against a database.                  
 sql:query)                                                                 
 sql-sync              Copies the database contents from a source site to a 
                       target site. Transfers the database dump via rsync.
Search commands: (search)
 search-index          Index the remaining search items without wiping the 
                       index.                                              
 search-reindex        Force the search index to be rebuilt.               
 (search:index)                                                            
 search-status         Show how many items remain to be indexed out of the 
                       total.
State commands: (state)
 state-delete (sdel,  Delete a state value.  
 state:delete)                               
 state-get (sget,     Display a state value. 
 state:get)                                  
 state-set (sset,     Set a state value.     
 state:set)
User commands: (user)
 user-add-role (urol,  Add a role to the specified user accounts.               
 user:add:role)                                                                 
 user-block (ublk,     Block the specified user(s).                             
 user:block)                                                                    
 user-cancel (ucan,    Cancel a user account with the specified name.           
 user:cancel)                                                                   
 user-create (ucrt,    Create a user account with the specified name.           
 user:create)                                                                   
 user-information      Print information about the specified user(s).           
 (uinf,                                                                         
 user:information)                                                              
 user-login (uli,      Display a one time login link for the given user account 
 user:login)           (defaults to uid 1).                                     
 user-password (upwd,  (Re)Set the password for the user account with the       
 user:password)        specified name.                                          
 user-remove-role      Remove a role from the specified user accounts.          
 (urrol,                                                                        
 user:remove:role)                                                              
 user-unblock (uublk,  Unblock the specified user(s).                           
 user:unblock)
Watchdog commands: (watchdog)
 watchdog-delete      Delete watchdog messages.                               
 (wd-del, wd-delete,                                                          
 watchdog:delete)                                                             
 watchdog-list        Show available message types and severity levels. A     

                            显示可用的消息类型和严重性级别。 一个
 (wd-list,            prompt will ask for a choice to show watchdog messages. 

                           提示将要求您选择显示看门狗消息。
 watchdog:list)                                                               
 watchdog-show        Show watchdog messages. 

                                     显示看门狗消息。                               
 (wd-show, ws,                                                                
 watchdog:show)

标签

  • drush
  • 登录或注册以发表评论

评论

相关文章

drush 命令中文对照表
drush 10 详细安装教程
Drupal 9 使用composer 和drush更新核心和模块
使用 whereis drush 查看drush 安装路径
drush 11启用和禁止drupal9维护模式
Ubuntu 20.04.2 LTS 使用composer安装 drush 教程
在运行drush 命令时出现错误
centos 7 阿里云基础服务器安装 composer 和 drush
composer 安装drush 教程
drush 命令帮助
dupal 瑞士军刀:drush 命令大全

文章标签

CSS
Excel
ubuntu
php
五笔
vim
Linux
HTML
command
drupal 7
composer
centos
Mysql
drupal 8
模块(module)
VPN
drush
JavaSrcipt
apache
drupal 9
英语
Drupal
SEO
nerdtree
network
果树种植
surround
drupal10
主题(theme)
phpmyadmin
ssh
权限
yum
二进制
声音
ssl
selinux
HTML5
用户
password
Dreamweaver
flameshot
颜色
翻译
uploadprogress
DDEV
视图(views)
firewalld
gzip
快捷键
kernel
xdebug
错误
ckeditor
mbstring
C语言
简介
源地址
php扩展
电脑基础
certbot
git
apt
压缩解压
表单
电子秤
httpd
WireGuard
邮件验证
breadcrumb
AI
superfish
diff
重定向
网站备份
摄影
tagclouds
docker
java
csharp
短信验证
adsense
drupal9
电脑技巧
simple_adsense
算法
RSS
youtube
版本号
JavaScript
badblocks
端口
cookie
VUE
网站运营
计算机基础
gimp
form
mod_expires 模块
nginx
zip
http验证
重定向,301
curl
netstat
input
赚钱
ip
dns
RFID
标签优化
drupal11
maven
drupal 11
npm
哈希值
字段
更多
RSS源
本站由阿里云强力驱动,幸运券优惠链接
Copyright © 2019 - 2021 你行网 版权所有  粤ICP备19072650号