dfinity / sdk

IC SDK: a Software Development Kit for creating and managing canister smart contracts on the ICP blockchain.
https://internetcomputer.org/developers
Apache License 2.0
171 stars 83 forks source link

feat: expose canister upgrade options in CLI #3893

Closed lwshang closed 1 week ago

lwshang commented 2 weeks ago

SDK-1779

Description

dfx canister install and dfx deploy takes options --skip-pre-upgrade and --wasm-memory-persistence.

dfx deploy --mode now takes the same possible values as dfx canister install --mode: install, reinstall, upgrade, auto.

To maintain backward compatibility, a minor difference between the two commands remains. If the --mode is not set, dfx deploy defaults to "auto", while dfx canister install defaults to "install".

How Has This Been Tested?

e2e tests in install.bash and deploy.bash.

Checklist: