Quickstart: Doctrine Org Init From Template

For operators who create their own doctrine.

Minimal scaffold (unchanged)

spec-kitty doctrine org init ./my-org-pack
spec-kitty doctrine org validate ./my-org-pack

Render from a local template

spec-kitty doctrine org init ./acme-doctrine \
  --template ~/projects/doctrine-template \
  --org-name acme-corp \
  --local-path pack

Omitting --local-path defaults it to pack.

Render from a git template

# Branch via flag
spec-kitty doctrine org init ./acme-doctrine \
  --template [email protected]:example/doctrine-template.git \
  --branch main \
  --org-name acme-corp

# Branch via URL fragment
spec-kitty doctrine org init ./acme-doctrine \
  --template https://github.com/example/doctrine-template.git#main \
  --org-name acme-corp

Expected result

paths listed in the template’s .templateignore (and never .git/).

clear rule error and do not leave a successful render.

  • Destination ./acme-doctrine contains the full template tree except
  • {{ORG_NAME}} / {{LOCAL_PATH}} are replaced throughout text files.
  • Invalid org names (e.g. Acme, doctrine-org, {{ORG_NAME}}) fail with a

Overwrite

spec-kitty doctrine org init ./acme-doctrine --force --template … --org-name …