This project provides an interactive shell that fully bootstraps Drupal, allowing you to inspect and test code without creating separate script files. It's powered by PsySh and offers a Read-Eval-Print-Loop (REPL) environment.
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
Ask your assistant about Drush PsySh Interactive Shell
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
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.