dfx info
Reference
Basic usage
dfx info [type] [flag]
Information types
These are the types of information that the dfx info command can display.
| Information | Description |
|---|---|
| candid-ui-url | The URL of the Candid UI canister. |
| config-json-path | Path to dfx configuration config.json. |
| networks-json-path | Path to network definition file networks.json. |
| default-effective-canister-id | The effective canister ID that dfx will use for management canister calls that don't imply one. |
| replica-port | The listening port of the replica. |
| pocketic-config-port | The listening port of PocketIC. |
| replica-rev | The revision of the bundled replica. |
| security-policy | Show the headers that gets applied to assets in .ic-assets.json5 if "security_policy" is "standard" or "hardened". |
| telemetry-log-path | Show the path to the telemetry log. |
| webserver-port | The local webserver port. |
Options
You can use the following options with the dfx info command.
| Option | Description |
|---|---|
--network <network> | Overrides the environment to connect to. By default, the local development environment is used. |
Examples
You can display the webserver port by running the following command:
$ dfx info webserver-port
4943
You can display the URL of Candid UI on mainnet by running the following command:
$ dfx info candid-ui-url --network ic
https://a4gq6-oaaaa-aaaab-qaa4q-cai.raw.icp0.io