Skip to main content

dfx info

Reference

Basic usage

dfx info [type] [flag]

Information Types

These are the types of information that the dfx info command can display.

InformationDescription
candid-ui-urlThe URL of the Candid UI canister.
networks-json-pathPath to network definition file networks.json.
replica-portThe listening port of the replica.
replica-revThe revision of the bundled replica.
webserver-portThe local webserver (icx-proxy) port.

Options

You can use the following options with the dfx info command.

OptionDescription
--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