What is the right way to initialize a canister?

You should be able to deploy using dfx deploy --argument <init arg>

dfx deploy basically does dfx canister create, followed by dfx build and dfx canister install. There, too, you can use dfx canister install --argument <init arg>

1 Like