Skip to content
Edit on GitHub

Using DVC Commands

DVC is a command line tool. Here we provide the specifications, complete descriptions, and comprehensive usage examples for dvc commands. For a list of commands, type dvc -h.

💡 To execute any DVC command in a different directory, use dvc --cd <path> ... before the actual command and its options/arguments (this does not change directories in your terminal).

Typical DVC workflow

  • Initialize a DVC project in a Git repo with dvc init.
  • Copy data files or dataset directories for modeling into the project and use dvc add to tell DVC to cache and track them.
  • Create a simple dvc.yaml file to codify a data processing pipeline. It uses your own source code and specifies further data outputs for DVC to control.
  • Execute or restore any version of your pipeline using dvc repro, or experiment on it with dvc exp features.
  • Sharing the repository will not include locally cached data. Use remote storage with dvc push and dvc pull to share data artifacts.
Content

🐛 Found an issue? Let us know! Or fix it:

Edit on GitHub

Have a question? Join our chat, we will help you:

Discord Chat