Automate template creation

Looking for example on how to automate template creation on running harvester HCI.