Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Drush PsySh Interactive Shell

No security coverage No further development 1 sites

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

Drupal 9–11

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.

Activity

Tracked releases
5
Tracked since
Jul 2024
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Release Timeline

Releases

Version Type Core PHP Release date
1.0.4 Stable 9–11 Jul 9, 2024
1.0.3 Stable 9–11 Jul 9, 2024
1.0.2 Stable 10–11 Jul 5, 2024
1.0.1 Stable 10–11 Jul 5, 2024
1.0.0 Stable 10–11 Jul 5, 2024