You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/cli.md
+22-1Lines changed: 22 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,7 @@ Command-line companion for deploying and operating Kinic “memory” canisters.
48
48
49
49
## Running the CLI
50
50
51
-
All commands require `--identity`. Use `--ic` to talk to mainnet; omit it (or leave false) for the local replica.
51
+
Use either `--identity` (dfx identity name stored in the system keychain) or `--ii` (Internet Identity login). Use `--ic` to talk to mainnet; omit it (or leave false) for the local replica. If you are not using `--ii`, `--identity <name>` is required for CLI commands.
52
52
53
53
```bash
54
54
cargo run -- --identity alice list
@@ -57,6 +57,27 @@ cargo run -- --identity alice create \
57
57
--description "Local test canister"
58
58
```
59
59
60
+
### Internet Identity flow (--ii)
61
+
62
+
First, open the browser login flow and store a delegation (default TTL: 6 hours):
63
+
64
+
```bash
65
+
cargo run -- --ii login
66
+
```
67
+
68
+
Then run commands with `--ii`:
69
+
70
+
```bash
71
+
cargo run -- --ii list
72
+
cargo run -- --ii create \
73
+
--name "Demo memory" \
74
+
--description "Local test canister"
75
+
```
76
+
77
+
Notes:
78
+
- Delegations are stored at `~/.config/kinic/identity.json`.
79
+
- The login flow uses a local callback on port `8620`.
0 commit comments