Once initialized in a project, DVC populates its installation
directory with internal files, which include
.dvc/config, the default
Config files can be composed manually (or programmatically), or managed with the
.dvc/config is meant to be tracked by Git and should not contain sensitive
user info or secrets (passwords, SHH keys, etc).
DVC supports saving configuration outside of the repository, either in a Git-ignored file alongside the regular config file or in other places in your file system. These locations and their loading priority are detailed below:
|Priority||Type||macOS location||Linux location (typical*)||Windows location|
* For Linux, the global file may be found in
$XDG_CONFIG_HOME, and the system
$XDG_CONFIG_DIRS, if those env vars are defined.
dvc config flags
The following config sections are written by this command to the appropriate
config file (
.dvc/config by default), supporting different config options
core- main section with the general config options
remote- sections in the config file that describe remote storage
cache- options that affect the project's cache
hydra- options around Hydra Composition for experiment configuration.
parsing- options around the parsing of dictionary unpacking.
plots- options for configuring
state- see Internal directories and files to learn more about the state database.
studio- options for configuring Iterative Studio token
index- see Internal directories and files to learn more about remote index files.