Q) How to specify  the pipeline template version in file?

Answer: They seem to be referred to as <name>:<version>If you have templates with specific tags created, you can refer to them with tags. By default no tag is treated as “latest” tag and newer version overrides the tag “latest” and cannot access the previous version.