Skip to content

Commit fcb4e30

Browse files
authored
feat(icp-cli): Update skill with information about icp identity link web (#209)
Clarified note about variable updates for canisters and added section on using the CLI with web identity.
1 parent 4188bc9 commit fcb4e30

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

skills/icp-cli/SKILL.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,8 +385,19 @@ const backendId = canisterEnv?.["PUBLIC_CANISTER_ID:backend"];
385385
import Runtime "mo:core/Runtime";
386386
let otherId = Runtime.envVar("PUBLIC_CANISTER_ID:other_canister");
387387
```
388+
Note: variables are only updated for canisters at deploy time. When adding a new canister, run `icp deploy` (without specifying a canister name) to update all canisters with the complete ID set.
388389

389-
Note: variables are only updated for canisters being deployed. When adding a new canister, run `icp deploy` (without specifying a canister name) to update all canisters with the complete ID set.
390+
### Using the cli with a web identity
391+
392+
Users can link a web identity and use it with icp-cli. This is This is useful to make calls to a canister from the cli using the same identity you would get by logging in through the web UI.
393+
394+
```
395+
# Sign in as your NNS identity
396+
icp identity link web nns-identity --app nns.ic0.app
397+
398+
# Sign in as your OISY identity
399+
icp identity link web oisy-identity --app oisy.com
400+
```
390401
391402
## Additional References
392403

0 commit comments

Comments
 (0)