sdk icon indicating copy to clipboard operation
sdk copied to clipboard

`--argument-file` is not available in `dfx deploy`

Open ZenVoich opened this issue 1 year ago • 0 comments

I tried the following:

  1. dfx deploy main --argument-file initArgs.did

I expected to see this happen: successful deploy

Instead, this happened: error: unexpected argument '--argument-file' found

Because of this I have to run two commands:

  1. dfx build main --network ic
  2. dfx canister install main --argument-file initArgs.did --network ic --mode upgrade

Meta

dfx --version:

dfx 0.15.3

ZenVoich avatar Jan 23 '24 19:01 ZenVoich