Skip to content
CCPEDIAby Unity Nodes
App Development

How to pass `init-script` option on the command line?

3 posts270 views1 likesLast activity Jan 2023

  1. LucianoOP

    Is there a way to pass this argument to daml start directly, instead of adding it to your daml.yaml file? I’ve tried --sandbox-option but that doesn’t wok.

  2. Luciano

    I should add that I recall doing this with the pre-canton sandbox. The question here relates really to the canton sandbox.

  3. 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-script path and running it via daml script separately, so probably the easiest way for you to do this is by running daml start ... && daml script ..., which more or less replicates the behavior of the SDK assistant.