Skip to content

Commit 6f11614

Browse files
authored
chore: bump icp-cli to v0.3.1 (#291)
## Summary - Pins `.sources/icp-cli` to v0.3.1 (`c4c4618`) - Updates all CLI doc link slugs from `/0.2/` → `/0.3/` across 12 files - Updates `@dfinity/asset-canister` recipe from `v2.1.0` → `v2.2.1` in 10 locations (4 files) — required because v0.3 removes the built-in `assets` sync step that v2.1.0 emitted internally; v2.2.1 replaces it with a plugin-based sync step - Fixes an inconsistent `@dfinity/rust@v3.1.0` → `v3.2.0` in `project-structure.mdx` ## Notable v0.3 changes (from CHANGELOG) **Breaking:** `type: assets` sync step removed from icp-cli core. Asset uploading now lives in the `@dfinity/asset-canister` recipe as a sync plugin. Projects using `@dfinity/asset-canister` below `v2.2.1` will fail to load their manifest after upgrading. The icp-cli docs site hosts an [upgrading-from-v0-2 guide](https://cli.internetcomputer.org/0.3/migration/upgrading-from-v0-2) for any user still on v0.2 projects. **New features:** `icp identity link web` (Internet Identity sign-in), project bundling, `{{_.canister.name}}` recipe template variable, sync plugin system, `--of-principal` for token/cycles balance. ## Verification - All previously linked CLI doc paths verified present in the new submodule - `npm run build` passes cleanly
1 parent fb06949 commit 6f11614

16 files changed

Lines changed: 34 additions & 34 deletions

File tree

.sources/VERSIONS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
chain-fusion-signer v0.4.0 a18c52a
5757
papi v0.1.1 168bc9d
5858
ic-pub-key v1.0.1 f89fa55
59-
icp-cli v0.2.3 caeac37
59+
icp-cli v0.3.1 c4c4618
6060
motoko v1.9.0 e7c78d7
6161
motoko-core v2.4.0 cd37dbf
6262
cdk-rs ic-cdk v0.20.1 / ic-cdk-timers v1.0.0 / ic-cdk-executor v2.0.0 317f55c

.sources/icp-cli

Submodule icp-cli updated 187 files

docs/developer-tools/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ Key features:
1818
- **Environments**: named deployment targets that combine a network, canister set, and settings (e.g., local, staging, production)
1919
- **Project scaffolding**: `icp new` bootstraps new projects from official templates
2020

21-
For installation, see the [Quickstart](../getting-started/quickstart.md) or the [full CLI documentation](https://cli.internetcomputer.org/0.2/).
21+
For installation, see the [Quickstart](../getting-started/quickstart.md) or the [full CLI documentation](https://cli.internetcomputer.org/0.3/).
2222

23-
Advanced: [creating recipes](https://cli.internetcomputer.org/0.2/guides/creating-recipes) and [creating templates](https://cli.internetcomputer.org/0.2/guides/creating-templates) are documented on the CLI docs site.
23+
Advanced: [creating recipes](https://cli.internetcomputer.org/0.3/guides/creating-recipes) and [creating templates](https://cli.internetcomputer.org/0.3/guides/creating-templates) are documented on the CLI docs site.
2424

2525
icp-cli collects anonymous usage telemetry. Opt out with `icp settings telemetry false` or `DO_NOT_TRACK=1`.
2626

27-
Coming from dfx? See the [migration guide](https://cli.internetcomputer.org/0.2/migration/from-dfx).
27+
Coming from dfx? See the [migration guide](https://cli.internetcomputer.org/0.3/migration/from-dfx).
2828

2929
### ic-wasm
3030

docs/getting-started/project-structure.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Beyond canisters, `icp.yaml` can also define **networks** (where to deploy) and
7272
| `local` | `local` (managed, localhost:8000) | Local development |
7373
| `ic` | `ic` (connected, https://icp-api.io) | Mainnet production |
7474

75-
You only need to add custom networks or environments when you have staging environments, testnets, or other deployment targets. See the [icp-cli configuration reference](https://cli.internetcomputer.org/0.2/reference/configuration#networks) for the full schema.
75+
You only need to add custom networks or environments when you have staging environments, testnets, or other deployment targets. See the [icp-cli configuration reference](https://cli.internetcomputer.org/0.3/reference/configuration#networks) for the full schema.
7676

7777
## Canister configuration (canister.yaml)
7878

@@ -99,7 +99,7 @@ The Rust backend uses the `@dfinity/rust` recipe:
9999
```yaml
100100
name: backend
101101
recipe:
102-
type: "@dfinity/rust@v3.1.0"
102+
type: "@dfinity/rust@v3.2.0"
103103
configuration:
104104
package: backend
105105
shrink: true
@@ -115,7 +115,7 @@ The frontend uses the `@dfinity/asset-canister` recipe, which builds the fronten
115115
```yaml
116116
name: frontend
117117
recipe:
118-
type: "@dfinity/asset-canister@v2.1.0"
118+
type: "@dfinity/asset-canister@v2.2.1"
119119
configuration:
120120
build:
121121
- npm install
@@ -147,7 +147,7 @@ icp project show
147147

148148
This outputs the effective configuration, including all expanded recipe steps and implicit defaults.
149149

150-
Recipes are Handlebars templates hosted at [dfinity/icp-cli-recipes](https://github.com/dfinity/icp-cli-recipes). You can also create local or remote recipes for custom build patterns. See the [icp-cli recipes documentation](https://cli.internetcomputer.org/0.2/guides/creating-recipes) for details.
150+
Recipes are Handlebars templates hosted at [dfinity/icp-cli-recipes](https://github.com/dfinity/icp-cli-recipes). You can also create local or remote recipes for custom build patterns. See the [icp-cli recipes documentation](https://cli.internetcomputer.org/0.3/guides/creating-recipes) for details.
151151

152152
## The .icp/ directory
153153

@@ -246,6 +246,6 @@ For a deep dive on binding generation, see [Binding generation](../guides/canist
246246
- [Binding generation](../guides/canister-calls/candid.md#binding-generation): deep dive on generating type-safe client code
247247
- [Asset canister](../guides/frontends/asset-canister.md): how the frontend recipe and asset upload work
248248
- [Canister lifecycle](../guides/canister-management/lifecycle.md): build, deploy, upgrade, and manage canisters
249-
- [icp-cli reference](https://cli.internetcomputer.org/0.2/reference/cli): full CLI and configuration documentation
249+
- [icp-cli reference](https://cli.internetcomputer.org/0.3/reference/cli): full CLI and configuration documentation
250250

251251
{/* Upstream: informed by dfinity/icp-cli docs/concepts/project-model.md, docs/concepts/recipes.md, docs/concepts/binding-generation.md, docs/concepts/canister-discovery.md */}

docs/getting-started/quickstart.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ icp --version
3737
ic-wasm --version
3838
```
3939

40-
> **Alternative methods:** [Homebrew, shell scripts, and other options](https://cli.internetcomputer.org/0.2/guides/installation) are also available.
40+
> **Alternative methods:** [Homebrew, shell scripts, and other options](https://cli.internetcomputer.org/0.3/guides/installation) are also available.
4141
4242
## Create a project
4343

@@ -127,6 +127,6 @@ Each canister name maps to a directory containing its own `canister.yaml` with b
127127
- [Choose your path](choose-your-path.md): pick a development path based on what you want to build
128128
- [Concepts: Canisters](../concepts/canisters.md): learn what canisters are and how they work
129129
- [AI coding agents](../guides/ai-coding-agents.md): use ICP skills to build on the Internet Computer with AI
130-
- [icp-cli documentation](https://cli.internetcomputer.org/0.2/): full CLI reference and guides
130+
- [icp-cli documentation](https://cli.internetcomputer.org/0.3/): full CLI reference and guides
131131

132132
<!-- Upstream: informed by dfinity/icp-cli docs/quickstart.md, docs/tutorial.md -->

docs/guides/canister-calls/parallel-inter-canister-calls.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ Parallel calls are most beneficial when the caller and callee are on **different
1616
<Tabs syncKey="lang">
1717
<TabItem label="Motoko">
1818

19-
- [icp-cli](https://cli.internetcomputer.org/0.2/guides/installation) installed
19+
- [icp-cli](https://cli.internetcomputer.org/0.3/guides/installation) installed
2020
- `mops` package manager with `core = "2.0.0"` in `mops.toml`
2121

2222
</TabItem>
2323
<TabItem label="Rust">
2424

25-
- [icp-cli](https://cli.internetcomputer.org/0.2/guides/installation) installed
25+
- [icp-cli](https://cli.internetcomputer.org/0.3/guides/installation) installed
2626
- `ic-cdk = "0.19"` and `futures = "0.3"` in `Cargo.toml`
2727

2828
</TabItem>

docs/guides/canister-management/cycles-management.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ icp deploy -e staging
307307
icp deploy -e production
308308
```
309309

310-
Each environment maintains separate canister IDs. Mainnet IDs are stored in `.icp/data/mappings/<environment>.ids.json` and should be committed to version control. See [Managing environments](https://cli.internetcomputer.org/0.2/guides/managing-environments) for full configuration options.
310+
Each environment maintains separate canister IDs. Mainnet IDs are stored in `.icp/data/mappings/<environment>.ids.json` and should be committed to version control. See [Managing environments](https://cli.internetcomputer.org/0.3/guides/managing-environments) for full configuration options.
311311

312312
## Production deployment checklist
313313

@@ -375,6 +375,6 @@ icp canister top-up backend --amount 1T -n ic
375375
- [Cycles ledger reference](../../references/system-canisters.md#cycles-ledger): Canister IDs and interface specification
376376
- [Calls with attached cycles](../canister-calls/inter-canister-calls.md#calls-with-attached-cycles): attach cycles to an inter-canister call and accept them in the callee
377377
- [Reproducible builds](reproducible-builds.md): Verify your WASM is trustworthy before deploying
378-
- [icp-cli docs](https://cli.internetcomputer.org/0.2/reference/cli#icp-cycles): Full command reference for `icp cycles` and `icp canister top-up`
378+
- [icp-cli docs](https://cli.internetcomputer.org/0.3/reference/cli#icp-cycles): Full command reference for `icp cycles` and `icp canister top-up`
379379

380380
{/* Upstream: informed by dfinity/portal (docs/building-apps/canister-management/topping-up.mdx, docs/building-apps/getting-started/tokens-and-cycles.mdx; dfinity/icp-cli) docs/guides/deploying-to-mainnet.md, docs/guides/tokens-and-cycles.md, docs/guides/managing-environments.md; dfinity/icskills: skills/cycles-management/SKILL.md */}

docs/guides/canister-management/logs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ async fn main() -> Result<()> {
405405

406406
- [Canister lifecycle](lifecycle.md): configure log visibility and memory limits when creating or deploying a canister
407407
- [Testing strategies](../testing/strategies.md): use canister logs as part of your debugging workflow
408-
- [CLI reference: `icp canister logs`](https://cli.internetcomputer.org/0.2/reference/cli#icp-canister-logs): full command flags and options
409-
- [CLI reference: `icp canister settings update`](https://cli.internetcomputer.org/0.2/reference/cli#icp-canister-settings-update): full command flags and options
408+
- [CLI reference: `icp canister logs`](https://cli.internetcomputer.org/0.3/reference/cli#icp-canister-logs): full command flags and options
409+
- [CLI reference: `icp canister settings update`](https://cli.internetcomputer.org/0.3/reference/cli#icp-canister-settings-update): full command flags and options
410410

411411
<!-- Upstream: informed by dfinity/portal — docs/building-apps/canister-management/logs.mdx, docs/building-apps/canister-management/backtraces.mdx, docs/building-apps/advanced/canister-access-logs.mdx; dfinity/examples — rust/canister_logs, motoko/canister_logs, rust/query_stats, motoko/query_stats; dfinity/cdk-rs — ic-cdk/src/api.rs, ic-cdk/src/management_canister.rs, ic-management-canister-types/src/lib.rs; dfinity/icp-cli — docs/reference/cli.md, docs/reference/canister-settings.md -->

docs/guides/canister-management/settings.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ icp canister settings update backend -e ic --freezing-threshold 90d
332332

333333
Additional flags: `--reserved-cycles-limit`, `--wasm-memory-threshold`, `--log-memory-limit`, `--add-environment-variable`. Run `icp canister settings update --help` for the full list.
334334

335-
For the full list of CLI flags, see the [icp-cli reference](https://cli.internetcomputer.org/0.2/reference/cli#icp-canister-settings-update).
335+
For the full list of CLI flags, see the [icp-cli reference](https://cli.internetcomputer.org/0.3/reference/cli#icp-canister-settings-update).
336336

337337
## Updating settings programmatically
338338

docs/guides/canister-management/snapshots.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,6 @@ icp canister status my-canister -e ic
181181
- [Canister lifecycle](lifecycle.md): Understand how snapshots fit into the upgrade workflow
182182
- [Canister migration](canister-migration.md): Complete guide for moving a canister to a different subnet using the snapshot transfer workflow
183183
- [Canister upgrades security](../security/canister-upgrades.md): Security considerations when using snapshot-based rollbacks
184-
- [icp-cli canister snapshot reference](https://cli.internetcomputer.org/0.2/guides/canister-snapshots): Full command reference for all snapshot subcommands
184+
- [icp-cli canister snapshot reference](https://cli.internetcomputer.org/0.3/guides/canister-snapshots): Full command reference for all snapshot subcommands
185185

186186
<!-- Upstream: informed by dfinity/icp-cli docs/guides/canister-snapshots.md; dfinity/portal docs/building-apps/canister-management/snapshots.mdx -->

0 commit comments

Comments
 (0)