Specifying canister init arguments in dfx.json #2887
Closed
ocluf
started this conversation in
Feature Requests
Replies: 1 comment
-
This is implemented in #3571 for release in dfx 0.17.0 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It would be nice if you could could specify the init arguments for the canister in your dfx.json.
For example in the current token deployment tutorial
You have to copy this command which you would probably put in a shell script.
While this isn't a huge bother it would be a nice quality of life improvement if you could just specify these args in the dfx.json so all your canister configuration is one place. Then you also could use
dfx deploy --all
with different init arguments per canister.It would also be nice if you could make a distinction between the arguments that are passed locally and when you deploy to the IC. In the token example you could for instance pass different minting principals for local en network deployment.
Perhaps this was hinted at in #2632 but it didn't mention dfx.json so I created a new discussion.
Beta Was this translation helpful? Give feedback.
All reactions