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

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 Likes

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.

2 Likes