You can configure certain properties for your DFINITY Canister SDK execution environment using environment variables.
This section lists the environment variables that are currently supported with examples of how to use them.
DFX_CONFIG_ROOT environment variable to specify a different location for storing the
.config subdirectories for
By default, the
.config directories are located in the home directory for your development environment.
For example, on macOS the default location is in the
DFX_CONFIG_ROOT environment variable to specify a different location for these directories.
DFX_INSTALLATION_ROOT environment variable to specify a different location for the
dfx binary if you are not using the default location for your operating system.
.cache/dfinity/uninstall.sh script uses this environment variable to identify the root directory for your DFINITY Canister SDK installation.
DFX_TELEMETRY_DISABLED environment variable to opt-out of having data collected about
dfx is configured to collect anonymous—that is, no identifying information such as IP addresses or user information—data about
dfx command activity and errors.
Collecting anonymous data is enabled by default in an effort to improve the developer experience based on usage patterns and behavior.
If you want to prevent the collection of data about
dfx usage, however, you can explicitly opt-out by setting the
DFX_TELEMETRY_DISABLED environment variable to one.