Back to Knowledge Base
Technical 6 min read
Understanding Drupal Recipes
What Drupal Recipes are, how they work in DrupalReady templates, and how to create your own.
What Are Recipes?
Drupal Recipes are a modern way to package and apply configuration. Unlike install profiles, recipes are composable — you can apply multiple recipes to build up your site's functionality incrementally.
How DrupalReady Uses Recipes
Each template includes a recipes/ directory with modular recipes:
base/— Core setup: content types, views, roles, permissions- Optional recipes like
blog/,events/,portfolio/add specific features performance/— Caching, aggregation, and optimization settings
You apply recipes with: drush recipe recipes/base
Creating Custom Recipes
To create your own recipe:
- Create a new directory under
recipes/ - Add a
recipe.ymlfile defining modules to install and config to apply - Apply with
drush recipe recipes/your-recipe
Recipe vs. Module
Use a recipe when you need to configure existing modules. Use a custom module when you need new PHP functionality (hooks, plugins, services).