Skip to main content
Last updated

template-generate

Generate statically typed generators for templates

ParameterDescriptionRequiredDefault value
-c, cleanClean existing templateNo
-f, --fileFile or directory to use to generate the clientYes
-o, --outOutput file/directory to place the generated clientYes

Generate a client from a template

sh
pactjs template-generate --file ./contractDir --out ./myContract.pact
sh
pactjs template-generate --file ./contractDir --out ./myContract.pact