Skip to main content

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

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

Receive important developer updates