icp_upgrade_canister
Upgrade an ICP canister with preflight checks, preserving state by default. Prevent data loss during code updates.
Instructions
Safely upgrade a canister with preflight checks. This tool ALWAYS uses upgrade mode by default to preserve state. Use icp_install_code directly only if you need reinstall.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | Release notes for tracking | |
| wasm_path | Yes | Path to the WASM file | |
| canister_id | Yes | The canister ID to upgrade | |
| project_path | No | Project path for release tracking | |
| skip_preflight | No | Skip preflight checks (NOT RECOMMENDED) | |
| force_reinstall | No | Force reinstall mode (DANGEROUS - wipes all state) |