Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Drush Batch Bar

No security coverage Drupal 10–11
View on drupal.org

This module allows you to easily create Drush commands that run batch operations, displaying a clean progress bar in the command line interface. It helps monitor batch progress without cluttering the output with individual operation logs.

The Drush Batch Bar module is for easily build Drush commands with batch operations and a clean Symfony progress bar output for the CLI.

The goal is to easily monitor the progress of batches triggered via Drush commands, just like you would in the Back Office, without cluttering the output by logging each operation.

This module also makes it easy to run batches through Drush commands.

Installation

Drush Batch Bar is installed in the usual way. See Installing contributed modules.

Prerequisites

This module requires PHP 8.4 or higher. As a result, it is compatible with Drupal core versions ^10.4 or ^11.1, which support PHP 8.4.
By extension, you'll also need Drush 12 or Drush 13, depending on your Drupal version.

How to use:

Create a Drush command as you normally would, and in the command method, instantiate a new DrushBatchCommands() and execute it.

$batch = new DrushBatchCommands(
  operations: $batch_operations,
  title: 'Title of your batch',
  finished: [
    DrushBatchBar::class,
    'finished',
  ]
);

$batch->execute();

You can override the finished parameter with your own custom method if needed.

If necessary, you can also create your own Batch class by extending DrushBatchBar.

In it, you can define your custom operations, the process method (where you can call parent::initProcess($context);), and the finish method.

Example

You can see implementation examples in the drush_batch_bar_example module.

You can also enable this module and run the commands to see the outputs.

Similar Project

Drush Batch Progressbar
This module will show progress bar on batch execution from drush.
Differences:
  • Not compatible with Drush >=12
  • Not compatible with Drupal >=10.2
  • Multiline progressbar
  • Batch native logger

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
3
Tracked since
Jul 2025
Latest release
11 months ago
Releases (12 mo)
1 ▼ from 2
Maintenance
Slowing

Release Timeline

Releases

Version Type Core Release date
1.0.0 Stable 10–11 Sep 7, 2025
1.0.0-beta2 Pre-release 10–11 Jul 19, 2025
1.0.0-beta1 Pre-release 11 Jul 19, 2025