--- title: Don't Bootstrap Drupal, Use Drush date: 2013-11-19 excerpt: Avoid bootstrapping Drupal manually in your scratch files - Drush has you covered! tags: - drush - drupal-planet - php --- There are times when doing Drupal development when you need to run a custom PHP script, maybe moving data from one field to another, that doesn't warrant the time and effort to create a custom module. In this scenario, it would be quicker to write a .php script and bootstrap Drupal to gain access to functions like `node_load()` and `db_query()`. To bootstrap Drupal, you would need to add some additional lines of code to the stop of your script. Here is an alternative way. ```language-php