Templates
Using templates
Reference templates from your YAML and add them with one command.
Sources
Reference from YAML
modules:
- name: "Orders"
layers:
- name: "Domain"
type: ClassLib
templates:
- "base-entity" # built-in
- "github:myorg/templates/audit-entity" # github
- "./company-templates/result" # localCommon commands
# Add an external template to your project (default scope)
socotra template add github:myorg/templates/module
socotra template add ./my-templates/my-thing
# Export a built-in template for customization
socotra template export base-entity
# List all templates (project + global + built-in)
socotra template list
# Update / remove
socotra template update my-thing
socotra template remove my-thingCaching
The environment variable SOCOTRA_REGISTRY_ROOT overrides the global root only. For details on sources, namespace tokens, and the application pipeline, see Authoring.
Schema 1.1 · CLI 1.0