This project is not covered by Drupal’s security advisory policy.

Notice

Seems to be duplicated to the "drush php" functionality. Please use "drush php" in the future.

Run interactive shell with Drupal fully bootstraped. Full REPL (Read-Eval-Print-Loop) support.

A Drush re-implementation of the old Drupal Console's shell command. Also powered by PsySh.

Features

Provides interactive REPL environment to inspect, modify and test run anything in a fully bootstrap environment without creating a script file.

Post-Installation

After installation, run the following commands in the Drupal folder:

drush psysh

To provide familiar alias to old Drupal console user, these commands alias also works:

drush shell
drush sh

Additional Requirements

Requires the installation of drush

Version Compatibility

This module is marked compatibility only with drush 11 and 12 because I've never tested it with newer version. Please help and test it on drush 13 or later and then report to the issue tracker. I will update accordingly.

Similar projects

Supporting organizations: 
Allow working hours for development and support of this module

Project information

Releases