Add multi template support in CLI