drupal cr - PauloCarv/drupalclaw-project GitHub Wiki

drupal-cr

Rebuild all Drupal caches. The equivalent of drush cr.

Usage

/drupal-cr

What it does

Detects whether the Docker stack is running and routes accordingly:

  • Stack running → docker exec -w /var/www/html <php-container> vendor/bin/drush cr
  • Local drush available → vendor/bin/drush cr
  • Neither → error with suggestion to run /drupal-serve

When to use

  • After enabling or disabling modules
  • After changing theme files or Twig templates
  • After modifying settings.php or services.yml
  • After updating routes or plugin definitions
  • When you see stale output and suspect a cache issue

Notes

Cache rebuild can take 5–20 seconds on larger projects. The skill waits for completion before reporting success.

Related skills