How to pass `init-script` option on the command line?
- LucianoOP
Is there a way to pass this argument to
daml startdirectly, instead of adding it to yourdaml.yamlfile? I’ve tried--sandbox-optionbut that doesn’t wok. - Luciano
I should add that I recall doing this with the pre-canton sandbox. The question here relates really to the canton sandbox.
- stefanobaghino-da 1
I’m not aware of ways in which Canton can accept a Daml Script to be run when a participant starts (and I couldn’t find them after a brief search). The way this is done in the SDK assistant (code) is by reading the
init-scriptpath and running it viadaml scriptseparately, so probably the easiest way for you to do this is by runningdaml start ... && daml script ..., which more or less replicates the behavior of the SDK assistant.