drush php:scriptfor drush 9x

Run php a script after a full Drupal bootstrap.

drush php:script

  • Aliases

    php:script has 2 alias/es:

    drush scr

    drush php-script

  • Arguments

    php:script accepts 1 argument/s:


  • Options

    php:script accepts 5 option/s:


    --format : format


    --script-path : script-path


    --notify : notify


    --druplicon : druplicon


    --xh-link : xh-link

  • Examples

    --script-path=/path/to/scripts:/another/path Run a script named example.php from specified paths

    drush php:script example

    List all available scripts.

    drush php:script

    Run foo.php script with argument 'apple' and option 'cider'. Note the -- separator.

    drush php:script foo -- apple --cider

  • Comments

    comments powered by Disqus