Skip to content


Rebuild a Drupal 8 site.

This is a copy of core/rebuild.php. Additionally it also clears Drush cache and Drupal's render cache.


  • --cache-clear[=CACHE-CLEAR]. Set to 0 to suppress normal cache clearing; the caller should then clear if needed. [default: 1]
  • --no-cache-clear. Negate --cache-clear option.


  • cr
  • rebuild
  • cache-rebuild


  • An argument or option with square brackets is optional.
  • Any default value is listed at end of arg/option description.
  • An ellipsis indicates that an argument accepts multiple values separated by a space.