Skip to content

v1.4.0

Choose a tag to compare

@github-actions github-actions released this 01 Sep 15:09
873e0bb

Release Notes

  • feat: a canister can now declare upgrade_args alongside init_args, in its own manifest and as a per-canister environment override. It is passed when icp deploy upgrades the canister, where init_args is passed when it installs or reinstalls it. It takes exactly the forms init_args does (inline Candid string, or { value | path, format }), and paths resolve against the canister's own directory the same way. A canister that declares no upgrade_args is upgraded with its init_args, as before, and --args / --args-file still override whichever applies.
  • feat: a new status_visibility canister setting controls who may read a canister's status (its running state, cycles, memory usage, and settings) through the management canister. It takes the same forms as log_visibility — controllers (the default), public, or { allowed_viewers: [...] } — and can be set in a manifest's settings: block or with icp canister settings update --status-visibility / --add-status-viewer / --remove-status-viewer / --set-status-viewer. icp canister status and icp canister settings show now report it. See the canister settings reference.
    • icp canister status and icp canister settings show now list principals one per line under their label rather than comma-separated on the label's line: log viewer: / status viewer: <principal> for the allowed viewers of a visibility setting, controller: <principal> for a canister's controllers. This applies to log_visibility and to the controller list as well, so scripts matching those lines need updating. Both lists are sorted, which the controller list previously was not.
    • icp canister settings update no longer lets a relative viewer edit silently revoke public access. --add-log-viewer / --remove-log-viewer and their --*-status-viewer counterparts are now rejected while that setting is public, which carries no allowed-viewers list for them to be relative to — previously they started one from empty, so adding a viewer to a public canister took access away from everyone else. The error points at --set-*-viewer, which states the new list outright, and at --*-visibility controllers, which revokes public access on its own. Both remain allowed and now warn about what they cost: replacing a public policy with a list, and removing the last viewer. This is breaking for the pre-existing log flags.
    • This raises the minimum replica version: reading a canister's status now requires one that reports status_visibility, and against an older replica canister_status fails to decode — which affects icp deploy, icp canister status, and icp canister settings show/sync, not just the new setting. Every mainnet subnet reports it. A managed network resolves the launcher to latest unless it pins version:, so only a pinned launcher older than 15.0.0-2026-08-13-03-55 is affected; raise the pin to that version or later.
  • feat: a new snapshot_visibility canister setting controls who may read the canister's snapshots — the list_canister_snapshots, read_canister_snapshot_metadata, and read_canister_snapshot_data endpoints behind icp canister snapshot list and icp canister snapshot download. It takes the same forms as log_visibility and status_visibility — controllers (the default), public, or { allowed_viewers: [...] } — in a manifest's settings: block or with icp canister settings update --snapshot-visibility / --add-snapshot-viewer / --remove-snapshot-viewer / --set-snapshot-viewer, and follows the same rule that a relative viewer edit is refused while the setting is public. icp canister status and icp canister settings show now report it, it is applied at creation, and icp canister settings sync keeps it in sync. Taking, restoring, and deleting snapshots remains controller-only; the setting governs reading alone. See the canister settings reference.
  • feat: script build steps now receive ICP_CLI_ENVIRONMENT, the name of the environment the canisters are being built for, so a build can vary by environment the way a sync step already could.
  • feat: icp completions <SHELL> prints a shell completion script for bash, zsh, fish, powershell, or elvish to stdout. See the installation guide for where to put it.
  • fix(sync-plugin): Wasmtime is updated 47.0.3 → 47.0.4, patching two advisories in the runtime that executes plugin sync steps: a WASI filesystem sandbox escape when paths or symlinks carry trailing slashes (RUSTSEC-2026-0269), and a guest-controlled host heap allocation through WASIp3 streams (RUSTSEC-2026-0268). The escape is the one that bears on this crate: plugins run against directories preopened under the canister directory, and containing a symlink that escapes a preopen is the runtime's job rather than something the declared-path checks can cover. Lockfile-only — no manifest, API, or minimum-toolchain change.
  • fix: canister settings from the manifest are no longer silently discarded when a canister is created through the legacy management-canister fallback (a CloudEngine subnet with no registered engine operator). That path went through ic-utils, which encodes create_canister's argument as a bare canister_settings record rather than the record { settings : opt canister_settings; ... } the interface spec defines, so the replica read no settings at all and created the canister with defaults. icp deploy masked this by syncing settings afterwards; icp canister create does not, and left the canister unconfigured.
  • fix: icp canister logs output formats are corrected. --json now emits machine-readable JSON and the default emits the human-readable lines (the two were swapped), and --follow --json emits newline-delimited JSON, one record per line, streamed as each record arrives. This is breaking for scripts: parsing the default output as JSON now requires --json, and consumers of --follow --json must read one JSON object per line.

Experimental

  • feat(signing): a canister call can now be signed on one machine and submitted from another, restoring what dfx canister sign / dfx canister send covered. icp canister call --sign-only <FILE> composes and signs a call and writes it to a JSON file instead of submitting it; icp message send <FILE> submits that file and prints the reply. So a machine that holds the key needs no network, and the machine with the network needs no key — it never resolves an identity at all. - writes to stdout and reads from stdin respectively.
    • Nothing is fetched while signing: the Candid interface comes from --candid or from the canister's local build artifact rather than from the canister itself, and --root-key must name a key (mainnet or a hex-encoded key) rather than fetch. --proxy is not supported.
    • icp message send shows what the message contains — sender, canister, method, decoded argument, window, and destination — and asks before submitting. --yes skips the prompt, and a non-TTY proceeds without one so a scripted courier works. --dry-run prints the same summary and stops without touching the network at all, which makes it the file-inspection command. --candid, --output and --json render the reply exactly as icp canister call does. Where the message is submitted comes from the file alone — there is no --network override, so no environment variable can silently redirect a signed message; a courier who has to change it edits the file's network field, which is unauthenticated in either case.
    • If sending fails after the message may already have gone out, re-run icp message send on the same file: the request id is a hash of the signed content, so resubmitting the identical message is de-duplicated by the IC and cannot execute twice. Signing again produces a new expiry, hence a different request id, which is not de-duplicated — for a transfer, a double spend. Every post-submission failure says so.
    • --valid-from <WHEN> places the message's submission window, as a duration from now (55m, 2h) or an RFC 3339 timestamp; it defaults to now. The window is always five minutes wide, because the IC rejects an ingress message whose expiry is further ahead than that — so this places the window rather than sizing it. Note that this is not dfx's --expire-after, which names the window's end and leaves you to subtract the five minutes yourself.
    • The file records the signed envelope, where to submit it, a tagged canister-or-subnet destination, the Candid interface, and a human-readable summary of what was signed. An update also carries a pre-signed request_status read, so the submitting machine can await the outcome with no key of its own; it shares the call's expiry, so both live in the same window.

Install icp-cli 1.4.0

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/dfinity/icp-cli/releases/download/v1.4.0/icp-cli-installer.sh | sh

Install prebuilt binaries via powershell script

powershell -ExecutionPolicy Bypass -c "irm https://github.com/dfinity/icp-cli/releases/download/v1.4.0/icp-cli-installer.ps1 | iex"

Download icp-cli 1.4.0

File Platform Checksum
icp-cli-aarch64-apple-darwin.tar.xz Apple Silicon macOS checksum
icp-cli-x86_64-apple-darwin.tar.xz Intel macOS checksum
icp-cli-x86_64-pc-windows-msvc.zip x64 Windows checksum
icp-cli-aarch64-unknown-linux-gnu.tar.xz ARM64 Linux checksum
icp-cli-x86_64-unknown-linux-gnu.tar.xz x64 Linux checksum