Feature Contracts & Hooks
These commands manage extensibility contracts and template hooks. Contracts define what a feature provides and requires, enabling the CLI to validate compatibility across features. Template hooks let features inject content into shared layout regions without modifying the product’s base templates.
Command reference
| Command | Description |
|---|---|
feature:contract |
Infer and optionally update the feature contract from source code |
feature:hooks |
List all template hook registrations in a feature’s hooks.py |
feature:hook:add |
Add a new hook registration to a feature |
feature:hook:remove |
Remove a hook registration from a feature |