2020-07-23 07:51:21 +01:00
|
|
|
# dvc config
|
|
|
|
|
|
|
|
> Low level command to manage custom configuration options for dvc repositories.
|
2020-07-31 16:03:25 +01:00
|
|
|
> These configurations can be on project, local, global, or system level.
|
2020-07-23 07:51:21 +01:00
|
|
|
> More information: <https://dvc.org/doc/command-reference/config>.
|
|
|
|
|
2020-07-31 16:03:25 +01:00
|
|
|
- Get the name of the default remote:
|
2020-07-23 07:51:21 +01:00
|
|
|
|
|
|
|
`dvc config core.remote`
|
|
|
|
|
2020-07-31 16:03:25 +01:00
|
|
|
- Set the project's default remote:
|
2020-07-23 07:51:21 +01:00
|
|
|
|
|
|
|
`dvc config core.remote {{remote_name}}`
|
|
|
|
|
2020-07-31 16:03:25 +01:00
|
|
|
- Unset the project's default remote:
|
2020-07-23 07:51:21 +01:00
|
|
|
|
|
|
|
`dvc config --unset core.remote`
|
|
|
|
|
2020-07-31 16:03:25 +01:00
|
|
|
- Get the config value for a specified key for the current project:
|
2020-07-23 07:51:21 +01:00
|
|
|
|
2020-07-31 16:03:25 +01:00
|
|
|
`dvc config {{key}}`
|
2020-07-23 07:51:21 +01:00
|
|
|
|
2020-07-31 16:03:25 +01:00
|
|
|
- Set the config value for a key on a project level:
|
2020-07-23 07:51:21 +01:00
|
|
|
|
2020-07-31 16:03:25 +01:00
|
|
|
`dvc config {{key}} {{value}}`
|
2020-07-23 07:51:21 +01:00
|
|
|
|
2020-07-31 16:03:25 +01:00
|
|
|
- Unset a project level config value for a given key:
|
2020-07-23 07:51:21 +01:00
|
|
|
|
2020-07-31 16:03:25 +01:00
|
|
|
`dvc config --unset {{key}}`
|
2020-07-23 07:51:21 +01:00
|
|
|
|
2020-07-31 16:03:25 +01:00
|
|
|
- Set a local, global, or system level config value:
|
2020-07-23 07:51:21 +01:00
|
|
|
|
2020-07-31 16:03:25 +01:00
|
|
|
`dvc config --local/global/system {{key}} {{value}}`
|