Skip to content
CCPEDIAby Unity Nodes
App Development

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

2 posts479 views5 likesLast activity Apr 2021

  1. Michael_SchaefferOP 2

    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.

  2. cocreature 3

    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.