Repository navigation
Releases
Releases · dfinity/icp-cli
v1.9.0
Release Notes
- feat:
--untrusted, onbuild,deployandsync, 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 holdsicp.yaml, which it takes as the project root: it does not look in the directories above, and running from a subdirectory fails.--project-root-overridenames another directory. Anything else is refused before the command acts on it, naming what was found. The.icpdirectory 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-clion 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 transferreports 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 deployandicp canister installrun 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 severaloptfields could accept a breaking upgrade before; it is now refused. This comes from updating tocandid0.10.41 andcandid_parser0.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_SECSlimits a run's wall-clock time, canister calls included, andICP_CLI_PLUGIN_MEMORY_LIMIT_MIBits 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_SECSis now read alongside them whenicpstarts, so a malformed value fails any command rather than only a sync. For crate users, all three limits, compute included, are set throughicp_sync_plugin::Limitspassed toWasmtime::new, andInvocation::compute_limit_secsis 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 updatingic-agent,ic-utilsandic-identity-hsmto 0.50.0, and with themk256andp256to 0.14. Identity files are read and written in the same format as before. - feat:
.icp/cache/artifactskeeps each distinct built module once. Canisters built to the same WASM — several canisters on onepre-builtmodule, 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/artifactsis deleted. Artifacts from an earlier version are not read:icp canister installafter upgrading reports the canister as not built untilicp buildhas run. The old files are left in place; delete.icp/cache/artifactsto reclaim their space. - chore: a sync plugin supplied as
.wattext no longer loads; supply the compiled.wasmcomponent. wasmtime is built with only the features the plugin runtime uses, which drops the text format among others.
Experimental
- fix(extension):
icp extension installrefuses 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 showescapes such characters in an extension installed before. - feat(bundle):
icp project bundlestores each distinct wasm module once for the whole bundle, at the archive root and named by its SHA-256: canister wasms atcanisters/<sha256>.wasm, where it used to write one per canister at<instance>/canisters/<canister>.wasm, and plugin wasms atplugins/<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 bypath:andsha256:, 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 bundleholds only regular files and directories. A symlink inside a plugin'sfiles:ordirs: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 afiles: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 | shInstall 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
Release Notes
- fix:
icp syncno longer needs controller rights. Its check that each canister is running usedcanister_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, asicp deployalready 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 --jsonandicp cycles buy -qimply--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 buysays, with neither--amountnor--cycles, that one of the two is needed; and that a negative--amountor--cycles(-1,-5t) is negative, in the same words and with exit status 2 for both, where clap read-5tas an unknown flag - fix:
icp cycles buysays in words what is wrong with a--gatewaythat 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 buydraws 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 commandicp <NAME>;--sha256refuses 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 (--yesskips 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-betabesidecyclepay).icp extension list,icp extension show <NAME>(both with--json) andicp 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/-nand 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 | shInstall 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
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.--gatewayorICP_CYCLES_GATEWAY_CANISTER_IDpicks another backend canister. - feat:
icp deployandicp canister createtake--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--subnetwould with that subnet; a subnet id passed as the engine is used as-is.name/slugor the engine's id picks one of several engines sharing a name. - fix: reject path-like network and environment names
- feat:
icp canister uninstallremoves a canister's code and state, leaving it empty with its id, cycles and settings intact — the equivalent ofdfx canister uninstall-code.--proxyroutes it through a proxy canister, as forstopanddelete. - fix(sync-plugin): Wasmtime is updated 49.0.2 → 49.0.3, patching the runtime that executes
pluginsync 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 | shInstall 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
Release Notes
- chore: the macOS
icprelease 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-clifrom 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
icplibrary crate is split intoicp-project(the project model and the build, install, sync and deploy operations) andicp-app(identities, settings, local networks and other machine-level state), andicp-projectnow 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 | shInstall 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
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-callcan call canisters besides the hosticp.yamlcan list key-value settings for pluginsicp.yaml's file/dir list is merged into a singlefileskey, which is also key-value instead of a list- A new function
canister-metadata-sectioncan fetch ICP metadata sections - Plugin input includes canister-principal mappings and the gateway and API URLs
- feat: a canister that uses a
recipecan now declare its ownsyncsteps, 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.recipeandbuildremain 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'scanisters:list, a dependency'scanisters:exposure list, an environment'ssettings:/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 foricp buildandicp 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'scanisters: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 | shInstall 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
Release Notes
- feat: a canister can now declare
upgrade_argsalongsideinit_args, in its own manifest and as a per-canister environment override. It is passed whenicp deployupgrades the canister, whereinit_argsis passed when it installs or reinstalls it. It takes exactly the formsinit_argsdoes (inline Candid string, or{ value | path, format }), and paths resolve against the canister's own directory the same way. A canister that declares noupgrade_argsis upgraded with itsinit_args, as before, and--args/--args-filestill override whichever applies. - feat: a new
status_visibilitycanister 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 aslog_visibility—controllers(the default),public, or{ allowed_viewers: [...] }— and can be set in a manifest'ssettings:block or withicp canister settings update --status-visibility / --add-status-viewer / --remove-status-viewer / --set-status-viewer.icp canister statusandicp canister settings shownow report it. See the canister settings reference.icp canister statusandicp canister settings shownow 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 tolog_visibilityand 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 updateno longer lets a relative viewer edit silently revoke public access.--add-log-viewer/--remove-log-viewerand their--*-status-viewercounterparts are now rejected while that setting ispublic, 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 apublicpolicy 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 replicacanister_statusfails to decode — which affectsicp deploy,icp canister status, andicp canister settings show/sync, not just the new setting. Every mainnet subnet reports it. Amanagednetwork resolves the launcher tolatestunless it pinsversion:, so only a pinned launcher older than15.0.0-2026-08-13-03-55is affected; raise the pin to that version or later.
- feat: a new
snapshot_visibilitycanister setting controls who may read the canister's snapshots — thelist_canister_snapshots,read_canister_snapshot_metadata, andread_canister_snapshot_dataendpoints behindicp canister snapshot listandicp canister snapshot download. It takes the same forms aslog_visibilityandstatus_visibility—controllers(the default),public, or{ allowed_viewers: [...] }— in a manifest'ssettings:block or withicp 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 ispublic.icp canister statusandicp canister settings shownow report it, it is applied at creation, andicp canister settings synckeeps it in sync. Taking, restoring, and deleting snapshots remains controller-only; the setting governs reading alone. See the canister settings reference. - feat:
scriptbuild steps now receiveICP_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 forbash,zsh,fish,powershell, orelvishto 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
pluginsync 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 encodescreate_canister's argument as a barecanister_settingsrecord rather than therecord { settings : opt canister_settings; ... }the interface spec defines, so the replica read no settings at all and created the canister with defaults.icp deploymasked this by syncing settings afterwards;icp canister createdoes not, and left the canister unconfigured. - fix:
icp canister logsoutput formats are corrected.--jsonnow emits machine-readable JSON and the default emits the human-readable lines (the two were swapped), and--follow --jsonemits 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 --jsonmust 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 sendcovered.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
--candidor from the canister's local build artifact rather than from the canister itself, and--root-keymust name a key (mainnetor a hex-encoded key) rather thanfetch.--proxyis not supported. icp message sendshows what the message contains — sender, canister, method, decoded argument, window, and destination — and asks before submitting.--yesskips the prompt, and a non-TTY proceeds without one so a scripted courier works.--dry-runprints the same summary and stops without touching the network at all, which makes it the file-inspection command.--candid,--outputand--jsonrender the reply exactly asicp canister calldoes. Where the message is submitted comes from the file alone — there is no--networkoverride, so no environment variable can silently redirect a signed message; a courier who has to change it edits the file'snetworkfield, which is unauthenticated in either case.- If sending fails after the message may already have gone out, re-run
icp message sendon 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_statusread, 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.
- Nothing is fetched while signing: the Candid interface comes from
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 | shInstall 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... |
v1.3.0
Release Notes
- feat: a canister environment variable's value can now be read from a file, by writing
var: { path: <file> }in place ofvar: value. The path resolves against the canister's directory — including in an environment override, matchinginit_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 bundlewrites the value into the bundled manifest inline, rejecting a file outside the project as it does for other manifest file references. - fix:
icp network startnow explains why a Docker-based network failed to come up. A container that exited before the network was ready was reported asfailed to watch docker container <id> for exitwith 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 startprints thedocker 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, meanticp network startwas silent. - fix: a network launcher running in a container (
icp settings autocontainerize true, and always on Windows) now receives--verbosewhenicp -dis used, matching the non-containerized launcher.
Experimental
- feat(bundle):
icp project bundlenow works on projects that declaredependencies:, which it previously refused outright. The bundle mirrors the workspace instead of flattening it: the root project'sicp.yamlsits at the archive root, each dependency instance gets its ownicp.yamlat the directory it occupies in the workspace, and thedependencies: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.
- 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
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 | shInstall 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
Release Notes
- feat(sync-plugin): the compute-time limit for
pluginsync steps is now configurable via theICP_CLI_PLUGIN_COMPUTE_LIMIT_SECSenvironment variable (default60). 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 linkassigns an existing canister principal to a project canister - feat:
icp canister create --with-icp(not supported inicp deploy) uses the CMC to create canisters. Only needed for deploying to restricted system subnets. - feat:
icp deploy --no-createwill error if any canisters do not exist, rather than creating them. - fix:
icp deploynow prints the frontend URL for any canister that exposes anhttp_requestendpoint. Previously a canister whosehttp_requestsignature 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 | shInstall 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
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-principalto inspect any account. - feat:
icp canister deletewill 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;icpprints a warning whenever it fetches.network statusreports where the key came from — aroot_key_sourcefield in--json, and a(fetched - unverified, trust-on-first-use)label in text output.root-keyis 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 addroot-key: mainnet. The built-inicnetwork is unchanged.
Experimental
- feat: Projects can now depend on other
icpprojects vendored into them (e.g. as git submodules) via a top-leveldependencies:block inicp.yaml.icp deploydeploys the dependency alongside your project and injects its canister IDs.- Running
icpfrom 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 | shInstall 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
Release Notes
- feat(sync-plugin):
pluginsync steps now reject anydirs/filesentry 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 | shInstall 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 |