drush php-scriptfor drush 6x

Run php script(s).

drush php-script

  • Aliases

    php-script has 1 alias/es:

    drush scr

  • Arguments

    php-script accepts 1 argument/s:

    filename : Optional. The file you wish to execute (without extension). If omitted, list files ending in .php in the current working directory and specified script-path. Some might not be real drush scripts. Beware.

  • Options

    php-script accepts 1 option/s:


    --script-path : script-path

  • Examples

    Run scratch.php script. See commands/core directory.

    drush php-script scratch

    Run script from specified paths

    drush php-script example --script-path=/path/to/scripts:/another/path

    List all available scripts.

    drush php-script

    Execute php code with a full Drupal bootstrap directly from a shell script.

    #!/usr/bin/env drush

  • Comments

    comments powered by Disqus