Skip to main content

Description

dvc.api.all_tags() returns a list of all Git tags in a DVC repository. Tags typically mark important milestones like releases or significant experiments, making this function useful for retrieving versioned data, models, and metrics.

Signature

Parameters

str
default:"None"
Location of the DVC repository. Defaults to the current project (found by walking up from the current working directory tree).Can be:
  • Local file system path
  • URL (HTTP/HTTPS)
  • Git SSH URL (e.g., user@server:project.git)

Returns

list[str]
List of Git tag names in the repository

Examples

List tags in current repository

Compare metrics across release tags

Download model from specific release

Track metrics evolution across releases

Compare production models

Use cases

Release comparison

Compare metrics and data across different releases

Model registry

Use tags as a simple model registry for versioned models

Reproducibility

Retrieve exact data and model versions from tagged releases

Deployment

Deploy specific tagged versions to production