`--argument-file` is not available in `dfx deploy`
Open
Nobody has claimed this yet.
needs-triage
- Dominant language
- Rust
- Stars
- 204
- Forks
- 98
- PR merge metrics
- No merged PRs in 30d
Description
I tried the following:
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:
dfx build main --network icdfx canister install main --argument-file initArgs.did --network ic --mode upgrade
Meta
dfx --version:
dfx 0.15.3
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the dfx deploy command entry point and compare its argument handling with dfx canister install, using the reported command as the reproduction. Done means dfx deploy main --argument-file initArgs.did accepts the option and performs a successful deploy; add or run the relevant CLI tests if present.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100