Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

CiviCRM Drush

358 sites Security covered
View on drupal.org

This module provides command-line tools for managing CiviCRM installations, offering commands to interact with the CiviCRM API, manage extensions, process mail queues, and clear caches. It also includes database operations like validation and upgrades.

The CiviCRM Drush module provides comprehensive command-line tools for managing CiviCRM installations on Drupal. This module provides Drush 9, 10, 11, and 12 support for CiviCRM drush actions, for Drupal 8, Drupal 9, Drupal 10, and Drupal 11. Originally developed by Skvare to continue Drush support for modern Drupal versions, this module allows developers and system administrators to perform CiviCRM operations efficiently from the command line.

Key Features
CiviCRM Management Commands

  • API Access: Direct command-line access to CiviCRM's extensive API system
  • Extension Management: Install, disable, enable, and list CiviCRM extensions
  • Database Operations: Validate database integrity and perform upgrades
  • Mail Processing: Handle CiviMail queues and batch processing
  • Cache Management: Clear and flush CiviCRM caches for optimal performance
  • Member Records: Process membership record updates via cron

Installation

Install as you would normally install a contributed Drupal module. Visit https://www.drupal.org/docs/8/extending-drupal-8/installing-drupal-8-mod... for further information.

composer require drupal/civicrm_drush

USAGE

   civicrm:api (cvapi)                            CLI access to CiviCRM APIs.                                                                                         
   civicrm:db-validate                            Valid CiviCRM Database.                                                                                             
   civicrm:disable-debug                          Disable CiviCRM Debugging.                                                                                          
   civicrm:enable-debug                           Enable CiviCRM Debugging.                                                                                           
   civicrm:ext-disable (ced)                      Disable a CiviCRM extension.                                                                                        
   civicrm:ext-install (cei)                      Install a CiviCRM extension.                                                                                        
   civicrm:ext-list (cel)                         List of CiviCRM extensions enabled.                                                                                 
   civicrm:ext-uninstall (ceui)                   Uninstall a CiviCRM extension.                                                                                      
   civicrm:member-records                         Run the CiviMember UpdateMembershipRecord cron (civicrm-member-records).                                            
   civicrm:process-mail-queue                     Process pending CiviMail mailing jobs.                                                                              
   civicrm:rest (cvr)                             Rest interface for accessing CiviCRM APIs.                                                                          
   civicrm:restore                                Restore CiviCRM codebase and database back from the specified backup dir.                                           
   civicrm:route-rebuild                          Adds a route rebuild option for CiviCRM.                                                                                                                                           
   civicrm:update-cfg (cvupcfg)                   Update config_backend to correct config settings.                                                                   
   civicrm:upgrade (cvup)                         Replace CiviCRM codebase with new specified tarfile and upgrade database.                                           
   civicrm:upgrade-db (cvupdb)                    Execute the civicrm/upgrade?reset=1 process from the command line. 
   civicrm:flush-cache (cvflush)                  Flush CiviCRM Cache.

Removed in 3.X Version

   civicrm:sql-cli (cvsqlc)             Open a SQL command-line interface using CiviCRM's credentials.                                                      
   civicrm:sql-conf                     Print CiviCRM database connection details.                                                                          
   civicrm:sql-connect                  A string for connecting to the CiviCRM DB.                                                                          
   civicrm:sql-dump                     Exports the CiviCRM DB as SQL using mysqldump.                                                                      
   civicrm:sql-query                    Execute a query against the CiviCRM database.        

Requirements

  • Drupal: 8.x, 9.x, 10.x, or 11.x (depending on module version)
  • CiviCRM: 5.x or later
  • Drush: 9.x, 10.x, 11.x, or 12.x (depending on module version)
  • PHP: Version compatible with your Drupal and CiviCRM installations

Getting Help
For support or to learn more about implementing this module:

  • Contact Skvare for professional support
  • Submit issues and feature requests in the project's issue queue

Activity

Total releases
6
First release
Dec 2024
Latest release
2 months ago
Releases (12 mo)
4 ▲ from 2
Maintenance
Active

Release Timeline

Releases

Version Type Release date
5.0.0-alpha2 Pre-release May 6, 2026
5.0.0-alpha1 Pre-release May 1, 2026
5.0.x-dev Dev May 1, 2026
4.0.0 Stable Aug 6, 2025
4.0.0-beta2 Pre-release Dec 5, 2024
8.x-3.2 Stable Dec 5, 2024