Skip to main content

Most Importanct Drush Commands

Core drush commands: (core)
 archive-dump (ard,    Backup your code, files, and database into a single    
 archive-backup, arb)  file.                                                  
 archive-restore       Expand a site archive into a Drupal web site.          
 (arr)                                                                        
 cache-clear (cc)      Clear a specific cache, or all drupal caches.          
 cache-get (cg)        Fetch a cached object and display it.                  
 cache-set (cs)        Cache an object expressed in JSON or var_export()      
                       format.                                                
 core-config (conf,    Edit drushrc, site alias, and Drupal settings.php files.
 config)                                                                      
 core-cron (cron)      Run all cron hooks in all active modules for specified  
                       site.                                                  
 core-execute (exec,   Execute a shell command. Usually used with a site alias.
 execute)                                                                      
 core-quick-drupal     Download, install, serve and login to Drupal with      
 (qd)                  minimal configuration and dependencies.                
 core-requirements     Provides information about things that may be wrong in  
 (status-report, rq)   your Drupal installation, if any.                      
 core-rsync (rsync)    Rsync the Drupal tree to/from another server using ssh.
 core-status (status,  Provides a birds-eye view of the current Drupal        
 st)                   installation, if any.                                  
 core-topic (topic)    Read detailed documentation on a given topic.          
 drupal-directory      Return path to a given module/theme directory.          
 (dd)                                                                          
 help                  Print this help message. See `drush help help` for more
                       options.                                                
 image-flush           Flush all derived images for a given style.            
 php-eval (eval, ev)   Evaluate arbitrary php code after bootstrapping Drupal  
                       (if available).                                        
 php-script (scr)      Run php script(s).                                      
 queue-list            Returns a list of all defined queues                    
 queue-run             Run a specific queue by name                            
 search-index          Index the remaining search items without wiping the    
                       index.                                                  
 search-reindex        Force the search index to be rebuilt.                  
 search-status         Show how many items remain to be indexed out of the    
                       total.                                                  
 self-update           Check to see if there is a newer Drush release          
 (selfupdate)          available.                                              
 shell-alias (sha)     Print all known shell alias records.                    
 site-alias (sa)       Print site alias records for all known site aliases and
                       local sites.                                            
 site-install (si)     Install Drupal along with modules/themes/configuration  
                       using the specified install profile.                    
 site-reset            Reset a persistently set site.                          
 site-set (use)        Set a site alias to work on that will persist for the  
                       current session.                                        
 site-ssh (ssh)        Connect to a Drupal site's server via SSH for an        
                       interactive session or to run a shell command          
 test-clean            Clean temporary tables and files.                      
 test-run              Run tests. Note that you must use the --uri option.    
 updatedb (updb)       Apply any database updates required (as with running    
                       update.php).                                            
 usage-send (usend)    Send anonymous Drush usage information to statistics    
                       logging site.  Usage statistics contain the Drush      
                       command name and the Drush option names, but no        
                       arguments or option values.                            
 usage-show (ushow)    Show Drush usage information that has been logged but  
                       not sent.  Usage statistics contain the Drush command  
                       name and the Drush option names, but no arguments or    
                       option values.                                          
 variable-delete       Delete a variable.                                      
 (vdel)                                                                        
 variable-get (vget)   Get a list of some or all site variables and values.    
 variable-set (vset)   Set a variable.                                        
 version               Show drush version.                                    
 watchdog-delete       Delete watchdog messages.                              
 (wd-del, wd-delete)                                                          
 watchdog-list         Show available message types and severity levels. A    
 (wd-list)             prompt will ask for a choice to show watchdog messages.
 watchdog-show         Show watchdog messages.                                
 (wd-show, ws)                                                                

Runserver commands: (runserver)
 runserver (rs)        Runs a lightweight built in http server for development.

Field commands: (field)
 field-clone           Clone a field and all its instances.                    
 field-create          Create fields and instances. Returns urls for field    
                       editing.                                                
 field-delete          Delete a field and its instances.                      
 field-info            View information about fields, field_types, and widgets.
 field-update          Return URL for field editing web page.                  

Project manager commands: (pm)
 pm-disable (dis)      Disable one or more extensions (modules or themes).  
 pm-download (dl)      Download projects from drupal.org or other sources.  
 pm-enable (en)        Enable one or more extensions (modules or themes).    
 pm-info (pmi)         Show detailed info for one or more extensions (modules
                       or themes).                                          
 pm-list (pml)         Show a list of available extensions (modules and      
                       themes).                                              
 pm-refresh (rf)       Refresh update status information.                    
 pm-releasenotes       Print release notes for given projects.              
 (rln)                                                                      
 pm-releases (rl)      Print release information for given projects.        
 pm-uninstall          Uninstall one or more modules.                        
 pm-update (up)        Update Drupal core and contrib projects and apply any
                       pending database updates (Same as pm-updatecode +    
                       updatedb).                                            
 pm-updatecode (upc)   Update Drupal core and contrib projects to latest    
                       recommended releases.                                

SQL commands: (sql)
 sql-cli (sqlc)        Open a SQL command-line interface using Drupal's  
                       credentials.                                      
 sql-connect           A string for connecting to the DB.                
 sql-create            Create a database.                                
 sql-drop              Drop all tables in a given database.              
 sql-dump              Exports the Drupal DB as SQL using mysqldump or    
                       equivalent.                                        
 sql-query (sqlq)      Execute a query against the site database.        
 sql-sync              Copy and import source database to target database.
                       Transfers via rsync.                              

User commands: (user)
 user-add-role (urol)  Add a role to the specified user accounts.              
 user-block (ublk)     Block the specified user(s).                            
 user-cancel (ucan)    Cancel a user account with the specified name.          
 user-create (ucrt)    Create a user account with the specified name.          
 user-information      Print information about the specified user(s).          
 (uinf)                                                                        
 user-login (uli)      Display a one time login link for the given user account
                       (defaults to uid 1).                                    
 user-password (upwd)  (Re)Set the password for the user account with the      
                       specified name.                                        
 user-remove-role      Remove a role from the specified user accounts.        
 (urrol)                                                                      
 user-unblock (uublk)  Unblock the specified user(s).                          

Other commands: (make)
 make                  Turns a makefile into a working Drupal codebase.
 make-generate         Generate a makefile from the current Drupal site.
 (generate-makefile) 

Comments

Popular posts from this blog

How to configure memcache with drupal 8 on ubuntu for reduce page load?

Memcache is an in-memory (RAM). It store data in Key-Value Format. Memcached server automatically stores all the content (data) in allocated RAM on the server. After configure memcache, it increase Drupal Site performance by moving standard caches out of the database. Drupal does not come with memcache by default if we want to install it then we have to install it on server. There are many steps that how to install memcache on the server and how to configure it with drupal 8 for reducing the load on the database with every page request. Step1 :- Open terminal of your machine and run following commands :- a. sudo apt-get update b. sudo apt install memcached c. sudo apt install php-memcached Step2 :- Check that Memcache daemon is working by using the following command : a. "ps aus | grep memcached" Step3 :- Also, check Memcache extension is configured in PHP. For that you have create a file phpinfo.php then write below code. <?php phpinfo(); ?> or sudo vi /var/www/html...

How deploy your angular project on GitHub Pages

Step 1:- Create Repository on github Note :- Open terminal and goto your project direcoty then run following command which you got after created repository. Step 2:- git init Step 3:- git add . Step 4:- git commit -m "first commit" Step 5:- git branch -M main Step 6:- git remote add origin https://github.com/rahuldrupal5788/DevR9angular.git Step 7:- git push -u origin main Step 8:- We need to build our code in production mode for that we will create deployment files that will be deployed on GitHub Pages. By default, this deployment code is generated in the /dist/<ProdectName> folder under the angular project folder, but we need to generate this in the "docs" folder under the angular project folder. So, we need to make a small change in the angular.json file and change the outputpath value to "docs/". Step 9:- Run the following command with the baseHref  option in the git bash window to generate deployment files in the docs folder. ng build --prod --b...

What is Docker? How to create Dockerfile, Volumes? How to manage container with Port Mapping?

What is Docker? Docker is an open source centerlized Platform designed to Create, Deploy and run applications. Docker use container on the host OS to run applications. It allows application to use the same linux Kernal as a System on the host computer, rather than creating a whole virtual OS. We can install docker on any OS but Docker engine run natively on linux distribution. Docker written in 'go' language. Docker is a tool that perform OS level virtualization, also known as Containerization. Before Docker, many users faces the problem that a particular Code is running in  the developer's system but not in the User's System. Docker was first Release in March 2013. It is developed by Soloman Hykes and Sebastion Pahl. Docker is a set of Platform as a service that uses OS level Virtualization whereas VMware uses Hardware level Virtualization. We can say that Docker is a tools which create the VM. Advantages of Docker :- There are following advantage of Docker : No pre-a...