Skip to content
CCPEDIAby Unity Nodes
Discussions/App Development/How to pass `init-script` option on the command line?Forum ↗

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

App Development3 posts234 views1 likesLast activity Jan 2023
LU
LucianoOP
Jan 2023

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.

LU
Luciano
Jan 2023

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

ST
stefanobaghino-da
Jan 2023

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.

← Back to Discussions