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. |
networks-json-path | Path to network definition file networks.json. |
replica-port | The listening port of the replica. |
replica-rev | The revision of the bundled replica. |
webserver-port | The local webserver (icx-proxy) 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 canister execution 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