Does anyone know how to call the canisterupdate method with JS

I don’t know how to call the canisterupdate method with JS. Can someone give me a template

1 Like

maybe you can use shelljs to execute the update command