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: .claude/CLAUDE.md
+11-4Lines changed: 11 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -109,11 +109,18 @@ Two network types in `crates/icp/src/network/`:
109
109
110
110
The network launcher is automatically downloaded on first use. For development/debugging, you can override with `ICP_CLI_NETWORK_LAUNCHER_PATH`.
111
111
112
-
##### Network Overrides
112
+
##### Implicit Networks and Environments
113
113
114
-
- Users can override the "local" network definition in their `icp.yaml` to customize the local development environment
115
-
- The "mainnet" network is protected and cannot be overridden to prevent production deployment accidents
116
-
- If no "local" network is defined, a default managed network on `localhost:8000` is automatically added
114
+
The CLI provides two implicit networks and environments that are always available:
115
+
116
+
-**`local` network**: A default managed network on `localhost:8000`. Users can override this in their `icp.yaml` to customize the local development environment (e.g., different port or connecting to an existing network).
117
+
-**`ic` network**: The IC mainnet at `https://icp-api.io`. This network is **protected** and cannot be overridden to prevent accidental production deployment with incorrect settings.
118
+
119
+
Corresponding implicit environments are also provided:
120
+
-**`local` environment**: Uses the `local` network with all project canisters. This is the default environment when none is specified.
121
+
-**`ic` environment**: Uses the `ic` network with all project canisters.
122
+
123
+
These constants are defined in `crates/icp/src/prelude.rs` as `LOCAL` and `IC` and are used throughout the codebase.
0 commit comments