drush php commands


Drush php commands for Drush 9.

  • php:eval


    Evaluate arbitrary php code after bootstrapping Drupal (if available).


    drush php:eval

    drush php:eval

  • php:script


    Run php a script after a full Drupal bootstrap.


    drush php:script

    drush php:script

  • php:cli


    Open an interactive shell on a Drupal site.


    drush php:cli

    drush php:cli