Skip to content

Releases

v1.9.0

Choose a tag to compare

@github-actions github-actions released this 24 Nov 23:25
97b4099

Release Notes

  • feat: --untrusted, on build, deploy and sync, holds a project someone else handed over to what it may read and run. Every file the project reads — manifests, argument and environment files, modules — must be under the project root and reached through no symlink. Each build step must be a pre-built module and each sync step a plugin, taken from a regular file in the project. A recipe is refused, wherever it is from. It expects to be run from the directory that holds icp.yaml, which it takes as the project root: it does not look in the directories above, and running from a subdirectory fails. --project-root-override names another directory. Anything else is refused before the command acts on it, naming what was found. The .icp directory is the tool's own state and is neither confined nor checked, so delete one that came with the project before running.
  • chore: macOS on Intel (x86_64-apple-darwin) is no longer a release target. Releases ship no Intel macOS archive, the shell installer refuses that platform, and npm no longer publishes @icp-sdk/icp-cli-darwin-x64, so installing @icp-sdk/icp-cli on an Intel Mac warns of an unsupported platform. Homebrew dropped Intel macOS in September 2026, and GitHub is retiring its Intel macOS runners. v1.8.0 is the last release with an Intel macOS build.
  • fix: icp token transfer reports a 64-character hex receiver whose checksum is wrong as an invalid account identifier, where it panicked.
  • fix: the Candid interface compatibility check that icp deploy and icp canister install run before an upgrade no longer accepts some breaking changes, and no longer takes exponential or quadratic time on large interfaces with recursive types or long alias chains. Comparing a recursive interface with several opt fields could accept a breaking upgrade before; it is now refused. This comes from updating to candid 0.10.41 and candid_parser 0.4.2, which also bring fixes for decoding Candid values.
  • feat(sync-plugin): whoever runs icp can bound what one sync plugin run consumes. ICP_CLI_PLUGIN_WALL_CLOCK_LIMIT_SECS limits a run's wall-clock time, canister calls included, and ICP_CLI_PLUGIN_MEMORY_LIMIT_MIB its memory, summed across all of the plugin's memories. Neither is set by a project. By default there is no wall-clock limit and memory is held to 4 GiB, so a plugin that works today keeps working. A plugin waiting on the host, which the compute-time limit never saw, now ends at the wall-clock limit. ICP_CLI_PLUGIN_COMPUTE_LIMIT_SECS is now read alongside them when icp starts, so a malformed value fails any command rather than only a sync. For crate users, all three limits, compute included, are set through icp_sync_plugin::Limits passed to Wasmtime::new, and Invocation::compute_limit_secs is gone.
  • fix: identity keys are handled by a release of the RustCrypto elliptic-curve crates that clears RUSTSEC-2026-0387, non-constant-time arithmetic in crypto-bigint. This comes from updating ic-agent, ic-utils and ic-identity-hsm to 0.50.0, and with them k256 and p256 to 0.14. Identity files are read and written in the same format as before.
  • feat: .icp/cache/artifacts keeps each distinct built module once. Canisters built to the same WASM — several canisters on one pre-built module, say — used to hold a copy each; they now share one file, at .modules/<sha256>.wasm, with a small file per canister under .refs/ naming it. A rebuild that changes nothing writes no module, one that finds its module damaged rewrites it, and a build ends by removing the modules no canister's entry names any longer. A canister removed from the project keeps its entry, and so its module, until .icp/cache/artifacts is deleted. Artifacts from an earlier version are not read: icp canister install after upgrading reports the canister as not built until icp build has run. The old files are left in place; delete .icp/cache/artifacts to reclaim their space.
  • chore: a sync plugin supplied as .wat text no longer loads; supply the compiled .wasm component. wasmtime is built with only the features the plugin runtime uses, which drops the text format among others.

Experimental

  • fix(extension): icp extension install refuses an extension whose summary, canister labels, command descriptions, argument help or values contain control characters or Unicode bidirectional-formatting characters (help text and descriptions may still break lines). Printed as they were, escape sequences in a label could erase earlier lines of the install prompt, hiding a canister, and a ledger's warning, from the list the user approves. icp extension show escapes such characters in an extension installed before.
  • feat(bundle): icp project bundle stores each distinct wasm module once for the whole bundle, at the archive root and named by its SHA-256: canister wasms at canisters/<sha256>.wasm, where it used to write one per canister at <instance>/canisters/<canister>.wasm, and plugin wasms at plugins/<sha256>.wasm, where it used to write a copy for every sync step of every canister in every instance at <instance>/plugins/<canister>/<idx>.wasm. A workspace of several frontend canisters built from the same asset canister and synced by the same assets plugin now carries each module once. Each step still names its module by path: and sha256:, so tools that read bundles need no change; a dependency's step reaches the store with a path that rises to the archive root, so a dependency's directory in an extracted bundle no longer works on its own — copied out, or as the root of --untrusted — and the bundle is used from its root. An archive listing no longer shows which canister a wasm belongs to; the manifests still do.
  • fix(bundle): icp project bundle holds only regular files and directories. A symlink inside a plugin's files: or dirs: directory used to be recorded as a link with its target unchecked, so one pointing outside the project reached that file on whatever machine unpacked the bundle. A link to somewhere inside the project is now copied as what it points at; one that leads outside the project, dangles, or leads back to a directory being copied fails the bundle, naming the link and where it leads. The same holds for a files: entry that is itself a symlink.

Install icp-cli 1.9.0

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/dfinity/icp-cli/releases/download/v1.9.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.9.0/icp-cli-installer.ps1 | iex"

Download icp-cli 1.9.0

File Platform Checksum
icp-cli-aarch64-apple-darwin.tar.xz Apple Silicon 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

v1.8.0

Choose a tag to compare

@github-actions github-actions released this 30 Oct 10:03
03dcb62

Release Notes

  • fix: icp sync no longer needs controller rights. Its check that each canister is running used canister_status, which only a controller or a listed status viewer may read, so an identity the canister merely authorizes (a developer preparing an SNS-owned frontend for a commit proposal, say) was refused before anything was uploaded. It now probes with a query, as icp deploy already does after starting a canister. A stopped canister is still refused with the same advice, after the probe's 30-second wait rather than at once.
  • fix: icp cycles buy --json and icp cycles buy -q imply --yes: a machine-readable run has nobody to ask, so neither prompts for confirmation on a terminal nor refuses without one, and the quote stays off stderr.
  • fix: icp cycles buy says, with neither --amount nor --cycles, that one of the two is needed; and that a negative --amount or --cycles (-1, -5t) is negative, in the same words and with exit status 2 for both, where clap read -5t as an unknown flag
  • fix: icp cycles buy says in words what is wrong with a --gateway that is not a canister id, a canister that serves no gateway, and one a boundary node cannot route to, where it printed the replica's IC0536 or the HTTP gateway's routing error; CyclePay and Stripe are named only for CyclePay's gateway, any other is "the gateway"
  • fix: icp cycles buy draws the payment QR code black on white on any terminal theme. It used to take the terminal's own colours, which a light theme inverts and a dark theme often renders grey on near-black, and many phone cameras read neither. A terminal without colour support gets the plain drawing as before.

Experimental

  • feat(extension): extensions add third-party commands to icp. An extension is a WebAssembly component that runs sandboxed: it has no filesystem, environment variables, sockets or processes, and reaches the outside only through what icp hands it, namely canister calls as the resolved identity on the resolved network, a yes/no prompt, and showing the user an http(s) URL to visit. On mainnet it may call only the canisters it declares; on other networks this allowlist is not enforced, so it can be tried against a local network. Calls to the management canister are refused on every network.
    • icp extension install <NAME> <SOURCE> installs one from an https URL or a local path as the command icp <NAME>; --sha256 refuses a component with a different hash. Install shows the extension, its sha256 and the mainnet canisters it will call, flagging ledgers, and asks for approval (--yes skips the prompt). The sha256 is recorded and checked before every run. Installing under a name already installed replaces it, and any name works, so a build can be tried beside the installed one (cyclepay-beta beside cyclepay).
    • icp extension list, icp extension show <NAME> (both with --json) and icp extension uninstall <NAME> manage what is installed.
    • An extension declares its commands, and they become ordinary icp subcommands: help, parse errors and shell completion work as for built-ins, and --identity, -e/-n and the like are icp's own, resolved before the extension runs. A built-in command always wins over an extension of the same name.

Install icp-cli 1.8.0

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/dfinity/icp-cli/releases/download/v1.8.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.8.0/icp-cli-installer.ps1 | iex"

Download icp-cli 1.8.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

v1.7.0

Choose a tag to compare

@github-actions github-actions released this 15 Oct 02:33
eda7715

Release Notes

  • feat: icp cycles buy --amount <amount> [--currency USD] buys cycles with a card for the current identity through CyclePay (https://www.cyclepay.org); --cycles <cycles> instead names the cycles to receive and pays the least amount that buys them, card fee included. It quotes the amount at CyclePay's published rate, asks for confirmation, creates the order as the identity on the CyclePay backend canister, prints the page to pay on with a QR code to scan (and opens it in a browser from a terminal, but not over SSH or on CI) and waits for the cycles to land on the identity's cycles-ledger account; Ctrl-C stops the wait, not the order. --gateway or ICP_CYCLES_GATEWAY_CANISTER_ID picks another backend canister.
  • feat: icp deploy and icp canister create take --engine <name> to target a cloud engine by name. The name is resolved to the engine's subnet through the engine canister, among the engines visible to the identity in use, and then behaves as --subnet would with that subnet; a subnet id passed as the engine is used as-is. name/slug or the engine's id picks one of several engines sharing a name.
  • fix: reject path-like network and environment names
  • feat: icp canister uninstall removes a canister's code and state, leaving it empty with its id, cycles and settings intact — the equivalent of dfx canister uninstall-code. --proxy routes it through a proxy canister, as for stop and delete.
  • fix(sync-plugin): Wasmtime is updated 49.0.2 → 49.0.3, patching the runtime that executes plugin sync steps against RUSTSEC-2026-0352 through RUSTSEC-2026-0364 — among them a WASI filesystem sandbox escape when renaming symlinks with trailing slashes (RUSTSEC-2026-0352), and a set of guest-triggerable host panics in the component model. No manifest, API, or minimum-toolchain change.

Install icp-cli 1.7.0

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/dfinity/icp-cli/releases/download/v1.7.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.7.0/icp-cli-installer.ps1 | iex"

Download icp-cli 1.7.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

v1.6.0

Choose a tag to compare

@github-actions github-actions released this 25 Sep 01:45
18435e1

Release Notes

  • chore: the macOS icp release binaries are now code-signed with DFINITY's Developer ID certificate. This improves the Keychain experience for identities stored in the keyring. macOS used to treat each unsigned release as a different app, so choosing "Always Allow" lasted only until the next upgrade. The signed binary keeps the same identity across releases, so after you allow access once more on the first signed version, it stays allowed through later upgrades. The signed binary is what you get from the GitHub release (including the shell installer) and npm. brew install icp-cli from homebrew-core is not signed, because Homebrew builds that formula from source on its own infrastructure. The binary is not notarized, so a release archive downloaded through a browser still gets a Gatekeeper warning; the shell installer and npm are unaffected.
  • chore: the codebase is reorganized as groundwork for running project operations inside a canister. The former icp library crate is split into icp-project (the project model and the build, install, sync and deploy operations) and icp-app (identities, settings, local networks and other machine-level state), and icp-project now reaches the file system, the network and sync plugins only through traits. This is internal only — no command, flag or manifest behavior changes.

Install icp-cli 1.6.0

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/dfinity/icp-cli/releases/download/v1.6.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.6.0/icp-cli-installer.ps1 | iex"

Download icp-cli 1.6.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

v1.5.0

Choose a tag to compare

@github-actions github-actions released this 09 Sep 15:42
763a55f

Release Notes

  • feat(sync-plugin): Introduced v0.2.0 of the sync-plugin interface. v0.1.0 plugins are still supported. v0.2.0 introduces the following features:
    • canister-call can call canisters besides the host
    • icp.yaml can list key-value settings for plugins
    • icp.yaml's file/dir list is merged into a single files key, which is also key-value instead of a list
    • A new function canister-metadata-section can fetch ICP metadata sections
    • Plugin input includes canister-principal mappings and the gateway and API URLs
  • feat: a canister that uses a recipe can now declare its own sync steps, which previously was rejected outright. They run after the sync steps the recipe renders, so a recipe's post-deployment work stays intact and yours is appended to it. recipe and build remain mutually exclusive.
  • feat: Env-specific builds previously did not affect which canisters were being built. Now, any canisters not listed in that environment will not be built.

Experimental

  • feat: Environment declarations in workspaces no longer require all canisters to be declared at the top level. Instead, each subproject declares its own canisters' membership in environment blocks.
  • feat(bundle): icp project bundle -e <ENV> now decides what the bundle carries, not just what its build steps are told. The archive holds the canisters that environment contains and the bundled manifests declare only those, so a bundle built for one environment no longer ships every canister in the project. References the pruning would leave dangling go with them: another environment's canisters: list, a dependency's canisters: exposure list, an environment's settings:/init_args: override of a canister that is gone, and a controller naming a canister the environment does not hold — in a canister's own settings or in an environment's override of them — which is reported as a warning. The environment is now resolved rather than passed through as a name, so naming one the project does not declare — or one a workspace member does not declare — is an error, as it already was for icp build and icp deploy.
  • fix(dependencies)!: an environment's canisters: list is now honored in a workspace — a vendored project's own list used to be dropped, so all of its canisters deployed. Membership is decided locally and only locally: each project's canisters: list names that project's own canisters, so every canister's membership is decided by the manifest that declares it, and a vendored project holds the same canisters in an environment as it would deployed on its own. This is breaking for a root that named a dependency's canister — canisters: [app, "vendor/openemail:frontend"] is now rejected when the project is loaded, and keeping a dependency's canister out of an environment means editing that dependency. canisters: [] likewise empties only the project that writes it, and a listed environment's canisters now come in declaration order. See Which canisters an environment holds.

Install icp-cli 1.5.0

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/dfinity/icp-cli/releases/download/v1.5.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.5.0/icp-cli-installer.ps1 | iex"

Download icp-cli 1.5.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

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 m...
Read more

v1.3.0

Choose a tag to compare

@github-actions github-actions released this 07 Aug 16:27
bf55d05

Release Notes

  • feat: a canister environment variable's value can now be read from a file, by writing var: { path: <file> } in place of var: value. The path resolves against the canister's directory — including in an environment override, matching init_args — and surrounding whitespace is trimmed off the file's contents. The file is read when the project is loaded, so a missing file fails before anything is deployed. icp project bundle writes the value into the bundled manifest inline, rejecting a file outside the project as it does for other manifest file references.
  • fix: icp network start now explains why a Docker-based network failed to come up. A container that exited before the network was ready was reported as failed to watch docker container <id> for exit with an empty cause, discarding the actual reason (e.g. the gateway port already being taken); the container's output is now attached to the error.
  • feat: Docker-based networks now show the launcher's output like non-containerized ones do. In the foreground the container's stdout and stderr are streamed to your terminal as it runs; in background mode icp network start prints the docker logs -f <container-id> command to follow it. Previously container output was never shown at all — which on Windows, where the launcher always runs in a container, meant icp network start was silent.
  • fix: a network launcher running in a container (icp settings autocontainerize true, and always on Windows) now receives --verbose when icp -d is used, matching the non-containerized launcher.

Experimental

  • feat(bundle): icp project bundle now works on projects that declare dependencies:, which it previously refused outright. The bundle mirrors the workspace instead of flattening it: the root project's icp.yaml sits at the archive root, each dependency instance gets its own icp.yaml at the directory it occupies in the workspace, and the dependencies: declarations are preserved, each pointing at the directory its dependency occupies in the archive (the same path a plainly vendored layout already used). A shared (diamond) dependency is still a single instance, canister names stay as each project wrote them, and canister discovery (PUBLIC_CANISTER_ID:<alias>:<canister>) works in the extracted bundle exactly as it did in the source workspace.
    • Every dependency must resolve to a directory inside the workspace root; one that resolves outside it (including through a symlink) is rejected, because the archive could not contain it. As a result, a vendored member that depends on a sibling cannot be bundled as a standalone project (e.g. via ICP_PROJECT_ROOT) — bundle the workspace root instead.
    • Projects with script sync steps still cannot be bundled, and the restriction now covers every project in the workspace.

Install icp-cli 1.3.0

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/dfinity/icp-cli/releases/download/v1.3.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.3.0/icp-cli-installer.ps1 | iex"

Download icp-cli 1.3.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

v1.2.0

Choose a tag to compare

@github-actions github-actions released this 23 Jul 21:42
9b35600

Release Notes

  • feat(sync-plugin): the compute-time limit for plugin sync steps is now configurable via the ICP_CLI_PLUGIN_COMPUTE_LIMIT_SECS environment variable (default 60). Raise it for compute-heavy plugins (e.g. brotli-compressing a large asset bundle) that legitimately exceed the default, especially on slower CI runners. The limit-exceeded error now names the variable and the current limit, and a malformed value is rejected rather than silently ignored.
  • feat: icp canister link assigns an existing canister principal to a project canister
  • feat: icp canister create --with-icp (not supported in icp deploy) uses the CMC to create canisters. Only needed for deploying to restricted system subnets.
  • feat: icp deploy --no-create will error if any canisters do not exist, rather than creating them.
  • fix: icp deploy now prints the frontend URL for any canister that exposes an http_request endpoint. Previously a canister whose http_request signature differed from a hard-coded shape (e.g. some certified-asset canisters) was misdetected and shown a Candid UI URL instead of its site URL. Deploy URLs are also now grouped by kind (frontends vs. Candid UI) instead of interleaved.

Install icp-cli 1.2.0

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/dfinity/icp-cli/releases/download/v1.2.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.2.0/icp-cli-installer.ps1 | iex"

Download icp-cli 1.2.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

v1.1.0

Choose a tag to compare

@github-actions github-actions released this 15 Jul 16:43
fe4af7c

Release Notes

  • feat: icp token [TOKEN|LEDGER_ID] approve <AMOUNT> <SPENDER> grants an ICRC-2 allowance, letting a spender transfer tokens on your behalf. Supports --from-subaccount (the account debited for the allowance), --spender-subaccount, and an optional --expires-in <DURATION> (e.g. 24h, 30d) to auto-expire the allowance.
  • feat: icp token [TOKEN|LEDGER_ID] allowance <SPENDER> displays the ICRC-2 allowance granted to a spender. Supports --subaccount, --spender-subaccount, and --of-principal to inspect any account.
  • feat: icp canister delete will now send the canister's remaining cycles to the caller
  • feat: Connected networks now take an explicit root-key, which accepts a hex-encoded key or one of two new values:
    • mainnet: use the canonical IC mainnet root key — handy for reaching mainnet through a custom boundary node without repeating the literal.
    • fetch: fetch the key from the network on each use. This is trust-on-first-use and does not verify the key's provenance, so it's meant only for testnets you or someone you trust operate; icp prints a warning whenever it fetches.
    • network status reports where the key came from — a root_key_source field in --json, and a (fetched - unverified, trust-on-first-use) label in text output.
    • root-key is now required for connected networks (previously optional, silently defaulting to the mainnet key). This is technically breaking, but most working projects are unaffected: a non-mainnet connected network already needed an explicit key, so in practice only a mainnet-via-custom-URL network needs to add root-key: mainnet. The built-in ic network is unchanged.

Experimental

  • feat: Projects can now depend on other icp projects vendored into them (e.g. as git submodules) via a top-level dependencies: block in icp.yaml.
    • icp deploy deploys the dependency alongside your project and injects its canister IDs.
    • Running icp from inside a vendored sub-project resolves up to the workspace root, so the whole workspace shares one network and one set of canister IDs.
    • Canister names and dependency aliases must now contain only ASCII letters, digits, _, and -, with : reserved as the dependency namespace separator. Names using other characters are now rejected.
    • See the Project Dependencies concept guide for details.

Install icp-cli 1.1.0

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/dfinity/icp-cli/releases/download/v1.1.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.1.0/icp-cli-installer.ps1 | iex"

Download icp-cli 1.1.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

v1.0.2

Choose a tag to compare

@github-actions github-actions released this 26 Jun 17:04
e84048d

Release Notes

  • feat(sync-plugin): plugin sync steps now reject any dirs/files entry that is, or traverses, a symlink. Together with the existing relative-path and .. checks, this keeps a declared path from resolving to a target outside the canister directory. The restriction may be relaxed in a future release if a safe use case emerges.

Experimental

  • fix(bundle): path validation use parent-dir analysis without canonicalize.

Install icp-cli 1.0.2

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/dfinity/icp-cli/releases/download/v1.0.2/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.0.2/icp-cli-installer.ps1 | iex"

Download icp-cli 1.0.2

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