Skip to content
CCPEDIAby Unity Nodes
Discussions/App Development/Given a DAR file, is there a good way to list the templates defined within that file?Forum ↗

Given a DAR file, is there a good way to list the templates defined within that file?

App Development2 posts449 views5 likesLast activity Apr 2021
MI
Michael_SchaefferOP
Apr 2021

Given a DAR file, is there a way from the command line to get a list of the templates (including package ID’s) defined within that DAR file? Alternatively, can damlc produce such a list while building a DAR? I’m using DAZL and looking for a way to more easily bind symbolic template names to fully qualified (with package ID) template names.

CO
cocreature
Apr 2021

Hi @Michael_Schaeffer, there is no builtin functionality for that at the moment.

You can use daml damlc inspect-dar --json to get the package ids but it does not list the individual templates. daml damlc inspect --json does in theory provide this information but the format is not guaranteed to be stable and you’ll have to do a fair amount of postprocessing to get the info you want out of it.

← Back to Discussions