Set/unset the default data remote.
Depending on your remote storage type, you may also need
dvc remote modifyto provide credentials and/or configure other remote parameters.
usage: dvc remote default [-h] [--global | --system | --local]
[-q | -v] [-u]
[name]
positional arguments:
name Name of the remote.You can query/set/replace/unset the default remote using the options of this
command. If the name of the remote is not provided and --unset is not
specified, this command returns the name of the default remote.
$ dvc remote default myremoteThis command assigns the default remote in the core section of the DVC config file.
[core]
remote = myremoteDefault remotes are expected by commands that accept a -r/--remote option
(dvc pull, dvc push, dvc status, dvc gc, dvc fetch) when that option
is omitted.
You can also use dvc config, dvc remote add and dvc remote modify commands
to set/unset/change the default remote configurations.
-u, --unset - unsets default remote.--global - save remote configuration to the global config (e.g.
~/.config/dvc/config) instead of .dvc/config.--system - save remote configuration to the system config (e.g.
/etc/dvc/config) instead of .dvc/config.--local - modify a local config file
instead of .dvc/config. It is located in .dvc/config.local and is
Git-ignored. This is useful when you need to specify private config options in
your config that you don't want to track and share through Git (credentials,
private locations, etc).-h, --help - prints the usage/help message and exit.-q, --quiet - do not write anything to standard output. Exit with 0 if no
problems arise, otherwise 1.-v, --verbose - displays detailed tracing information.Set myremote as default remote:
$ dvc remote default myremoteGet default remote:
$ dvc remote default
myremoteChange default remote value:
$ dvc remote default mynewremoteIn the DVC config file, the updated value of default remote can be found in the
core section (run cat .dvc/config):
[core]
remote = mynewremoteClear/unset default remote value:
$ dvc remote default -u